]> git.sesse.net Git - vlc/blob - extras/contrib/Makefile
Bug fix for *.a libraries.
[vlc] / extras / contrib / Makefile
1 # ***************************************************************************
2 # Makefile : Build vlc-contrib files
3 # ***************************************************************************
4 # Copyright (C) 2003 VideoLAN
5 # $Id: Makefile,v 1.5 2003/11/23 14:00:25 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 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         $(MAKE) -C src clean-src
51
52 clean-bin: FORCE
53         rm -rf $(BUILDDIRS)
54         $(MAKE) -C src clean-dots
55
56 clean: FORCE
57         @echo "Do you mean to clean-src or clean-bin ?"
58
59 package: FORCE
60         @if test -d tmp; then \
61                 echo "Move away ./tmp, it's in the way" ; \
62                 exit 1 ; \
63         fi
64         mkdir tmp
65         tar cf - bin include lib vlc-lib share/aclocal* share/autoconf* \
66                 share/automake* share/gettext* \
67                 | (cd tmp; tar xf -)
68         ./change_prefix.sh tmp $(PREFIX) @@CONTRIB_PREFIX@@
69         (cd tmp; tar cf - .) | bzip2 -c > contrib-macosx.tar.bz2
70         rm -rf tmp
71
72 FORCE: