]> git.sesse.net Git - vlc/blob - extras/contrib/Makefile
* New build system for the contrib packages of VLC. It supports to
[vlc] / extras / contrib / Makefile
1 # ***************************************************************************
2 # Makefile : Build vlc-contrib files
3 # ***************************************************************************
4 # Copyright (C) 2003 VideoLAN
5 # $Id: Makefile,v 1.1 2003/11/15 01:21:48 massiot Exp $
6
7 # Authors: Christophe Massiot <massiot@via.ecp.fr>
8
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2 of the License, or    
12 # (at your option) any later version.
13 #
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 # GNU General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22 # ***************************************************************************
23
24 include ./config.mak
25
26 BUILDDIRS = bin doc etc include info lib man sbin share vlc-lib
27
28 all: FORCE
29         @echo "Do you mean to make src or make bin ?"
30
31 src: FORCE
32         $(MAKE) -C src all
33
34 bin: FORCE
35         $(WGET) $(CONTRIB_URL)
36         bunzip2 -c $< | tar xf -
37
38 clean-src: FORCE
39         $(MAKE) -C src clean-src
40
41 clean-bin: FORCE
42         rm -rf $(BUILDDIRS)
43         $(MAKE) -C src clean-dots
44
45 clean: FORCE
46         @echo "Do you mean to clean-src or clean-bin ?"
47
48 package: FORCE
49         tar cf - bin include lib vlc-lib share/aclocal* share/autoconf* \
50                 share/automake* share/gettext* \
51                 | bzip2 -c > contrib.tar.bz2
52
53 FORCE: