]> git.sesse.net Git - vlc/blob - extras/contrib/Makefile
* contrib/Makefile: remove the BUILDDIRS on clean-src as well to prevent the disposal...
[vlc] / extras / contrib / Makefile
1 # ***************************************************************************
2 # Makefile : Build vlc-contrib files
3 # ***************************************************************************
4 # Copyright (C) 2003 VideoLAN
5 # $Id$
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 tmp
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 contrib-macosx.tar.bz2: FORCE
35         $(WGET) $(CONTRIB_URL)
36
37 bin: contrib-macosx.tar.bz2
38         @if test -d tmp; then \
39                 echo "Move away ./tmp, it's in the way" ; \
40                 exit 1 ; \
41         fi
42         mkdir tmp
43         bunzip2 -c $< | (cd tmp; tar xf -)
44         ./change_prefix.sh tmp @@CONTRIB_PREFIX@@ $(PREFIX)
45         (cd tmp; tar cf - .) | tar xf -
46         rm -rf tmp
47         ranlib lib/*\.a
48
49 clean-src: FORCE
50     rm -rf $(BUILDDIRS)
51         $(MAKE) -C src clean-src
52
53 clean-bin: FORCE
54         rm -rf $(BUILDDIRS)
55         $(MAKE) -C src clean-dots
56
57 clean: FORCE
58         @echo "Do you mean to clean-src or clean-bin ?"
59
60 package: FORCE
61         @if test -d tmp; then \
62                 echo "Move away ./tmp, it's in the way" ; \
63                 exit 1 ; \
64         fi
65         mkdir tmp
66         tar cf - bin sbin include lib vlc-lib share/aclocal* share/autoconf* \
67                 share/automake* share/gettext* \
68                 | (cd tmp; tar xf -)
69         ./change_prefix.sh tmp $(PREFIX) @@CONTRIB_PREFIX@@
70         (cd tmp; tar cf - .) | bzip2 -c > contrib-macosx.tar.bz2
71         rm -rf tmp
72
73 FORCE: