Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 1 | # Top-level Mesa makefile |
2 | |||||
3 | TOP = . | ||||
4 | |||||
Brian Paul | 0a401b5 | 2010-06-04 17:36:17 -0600 | [diff] [blame] | 5 | SUBDIRS = src |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 6 | |
7 | |||||
Ian Romanick | de579a1 | 2011-03-31 11:42:01 -0700 | [diff] [blame] | 8 | # The git command below generates an empty string when we're not |
9 | # building in a GIT tree (i.e., building from a release tarball). | ||||
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 10 | default: $(TOP)/configs/current |
Ian Romanick | de579a1 | 2011-03-31 11:42:01 -0700 | [diff] [blame] | 11 | @$(TOP)/bin/extract_git_sha1 |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 12 | @for dir in $(SUBDIRS) ; do \ |
Brian | 16c503f | 2007-05-09 16:22:53 -0600 | [diff] [blame] | 13 | if [ -d $$dir ] ; then \ |
14 | (cd $$dir && $(MAKE)) || exit 1 ; \ | ||||
15 | fi \ | ||||
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 16 | done |
17 | |||||
José Fonseca | 9df478d | 2008-02-18 16:47:35 +0900 | [diff] [blame] | 18 | all: default |
19 | |||||
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 20 | |
Brian Paul | 6d50d91 | 2004-07-01 15:32:51 +0000 | [diff] [blame] | 21 | doxygen: |
Dan Nicholson | cba14d8 | 2008-05-06 12:29:53 -0700 | [diff] [blame] | 22 | cd doxygen && $(MAKE) |
Brian Paul | 6d50d91 | 2004-07-01 15:32:51 +0000 | [diff] [blame] | 23 | |
Paul Berry | 659cded | 2011-07-05 11:52:06 -0700 | [diff] [blame] | 24 | check: |
25 | cd src/glsl/tests/ && ./optimization-test | ||||
26 | @echo "All tests passed." | ||||
27 | |||||
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 28 | clean: |
Dan Nicholson | a6464b3 | 2008-05-07 11:35:23 -0700 | [diff] [blame] | 29 | -@touch $(TOP)/configs/current |
30 | -@for dir in $(SUBDIRS) ; do \ | ||||
Brian | 16c503f | 2007-05-09 16:22:53 -0600 | [diff] [blame] | 31 | if [ -d $$dir ] ; then \ |
32 | (cd $$dir && $(MAKE) clean) ; \ | ||||
33 | fi \ | ||||
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 34 | done |
Dan Nicholson | a6464b3 | 2008-05-07 11:35:23 -0700 | [diff] [blame] | 35 | -@test -s $(TOP)/configs/current || rm -f $(TOP)/configs/current |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 36 | |
37 | |||||
Dan Nicholson | a6464b3 | 2008-05-07 11:35:23 -0700 | [diff] [blame] | 38 | realclean: clean |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 39 | -rm -rf lib* |
40 | -rm -f $(TOP)/configs/current | ||||
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 41 | -rm -f $(TOP)/configs/autoconf |
42 | -rm -rf autom4te.cache | ||||
Dan Nicholson | c5e2b85 | 2008-05-06 14:00:43 -0700 | [diff] [blame] | 43 | -find . '(' -name '*.o' -o -name '*.a' -o -name '*.so' -o \ |
44 | -name depend -o -name depend.bak ')' -exec rm -f '{}' ';' | ||||
Keith Whitwell | ae68c32 | 2004-12-15 11:03:41 +0000 | [diff] [blame] | 45 | |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 46 | |
Brian Paul | 666702b | 2009-04-16 09:31:45 -0600 | [diff] [blame] | 47 | distclean: realclean |
48 | |||||
49 | |||||
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 50 | install: |
Brian Paul | 0e794a1 | 2006-06-22 22:50:48 +0000 | [diff] [blame] | 51 | @for dir in $(SUBDIRS) ; do \ |
Brian | 16c503f | 2007-05-09 16:22:53 -0600 | [diff] [blame] | 52 | if [ -d $$dir ] ; then \ |
53 | (cd $$dir && $(MAKE) install) || exit 1 ; \ | ||||
54 | fi \ | ||||
Brian Paul | 0e794a1 | 2006-06-22 22:50:48 +0000 | [diff] [blame] | 55 | done |
Brian Paul | 81ca616 | 2005-01-03 15:35:00 +0000 | [diff] [blame] | 56 | |
Brian | 16c503f | 2007-05-09 16:22:53 -0600 | [diff] [blame] | 57 | |
Paul Berry | 659cded | 2011-07-05 11:52:06 -0700 | [diff] [blame] | 58 | .PHONY: default doxygen clean realclean distclean install check |
Dan Nicholson | 50f7e6f | 2008-05-06 11:52:34 -0700 | [diff] [blame] | 59 | |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 60 | # If there's no current configuration file |
61 | $(TOP)/configs/current: | ||||
62 | @echo | ||||
63 | @echo | ||||
64 | @echo "Please choose a configuration from the following list:" | ||||
Dan Nicholson | 38c5b14 | 2008-05-06 15:46:40 -0700 | [diff] [blame] | 65 | @ls -1 $(TOP)/configs | grep -v "current\|default\|CVS\|autoconf.*" |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 66 | @echo |
67 | @echo "Then type 'make <config>' (ex: 'make linux-x86')" | ||||
Dan Nicholson | 38c5b14 | 2008-05-06 15:46:40 -0700 | [diff] [blame] | 68 | @echo |
69 | @echo "Or, run './configure' then 'make'" | ||||
70 | @echo "See './configure --help' for details" | ||||
71 | @echo | ||||
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 72 | @echo "(ignore the following error message)" |
73 | @exit 1 | ||||
74 | |||||
75 | |||||
76 | # Rules to set/install a specific build configuration | ||||
77 | aix \ | ||||
Karl Schultz | a16bdb5 | 2004-10-01 13:33:26 +0000 | [diff] [blame] | 78 | aix-64 \ |
Brian Paul | 294d9ab | 2006-04-13 03:00:14 +0000 | [diff] [blame] | 79 | aix-64-static \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 80 | aix-gcc \ |
Brian Paul | 6d50d91 | 2004-07-01 15:32:51 +0000 | [diff] [blame] | 81 | aix-static \ |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 82 | autoconf \ |
Brian | 792b882 | 2007-08-02 20:26:49 -0600 | [diff] [blame] | 83 | bluegene-osmesa \ |
Brian | a5467fb | 2007-09-20 15:11:14 -0600 | [diff] [blame] | 84 | bluegene-xlc-osmesa \ |
Alex Neundorf | cae5b7f | 2007-10-24 16:31:22 -0600 | [diff] [blame] | 85 | catamount-osmesa-pgi \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 86 | darwin \ |
Jeremy Huddleston | 7c7fece | 2008-03-10 15:13:28 -0700 | [diff] [blame] | 87 | darwin-fat-32bit \ |
88 | darwin-fat-all \ | ||||
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 89 | freebsd \ |
Eric Anholt | cc18221 | 2004-10-28 00:19:21 +0000 | [diff] [blame] | 90 | freebsd-dri \ |
Eric Anholt | f054fa8 | 2005-05-28 20:17:06 +0000 | [diff] [blame] | 91 | freebsd-dri-amd64 \ |
Eric Anholt | cc18221 | 2004-10-28 00:19:21 +0000 | [diff] [blame] | 92 | freebsd-dri-x86 \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 93 | hpux10 \ |
94 | hpux10-gcc \ | ||||
Brian Paul | ff7d3bb | 2004-03-30 14:56:47 +0000 | [diff] [blame] | 95 | hpux10-static \ |
Karl Schultz | 786eef2 | 2004-10-01 20:19:16 +0000 | [diff] [blame] | 96 | hpux11-32 \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 97 | hpux11-32-static \ |
98 | hpux11-32-static-nothreads \ | ||||
Karl Schultz | 786eef2 | 2004-10-01 20:19:16 +0000 | [diff] [blame] | 99 | hpux11-64 \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 100 | hpux11-64-static \ |
Brian Paul | 294d9ab | 2006-04-13 03:00:14 +0000 | [diff] [blame] | 101 | hpux11-ia64 \ |
102 | hpux11-ia64-static \ | ||||
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 103 | hpux9 \ |
104 | hpux9-gcc \ | ||||
105 | irix6-64 \ | ||||
106 | irix6-64-static \ | ||||
107 | irix6-n32 \ | ||||
108 | irix6-n32-static \ | ||||
109 | irix6-o32 \ | ||||
110 | irix6-o32-static \ | ||||
111 | linux \ | ||||
Keith Whitwell | 211d7ab | 2009-11-04 13:03:35 +0000 | [diff] [blame] | 112 | linux-i965 \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 113 | linux-alpha \ |
114 | linux-alpha-static \ | ||||
Brian | 88b715b | 2007-12-02 15:23:51 -0700 | [diff] [blame] | 115 | linux-cell \ |
Brian Paul | ab93aa7 | 2008-09-03 09:08:19 -0600 | [diff] [blame] | 116 | linux-cell-debug \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 117 | linux-debug \ |
Keith Whitwell | e61df58 | 2004-04-14 12:44:07 +0000 | [diff] [blame] | 118 | linux-dri \ |
Brian | 15b3bd1 | 2007-02-23 11:58:46 -0700 | [diff] [blame] | 119 | linux-dri-debug \ |
Dave Airlie | 898c03a | 2004-05-03 11:30:37 +0000 | [diff] [blame] | 120 | linux-dri-x86 \ |
Keith Whitwell | 69ab4fe | 2004-04-30 08:29:04 +0000 | [diff] [blame] | 121 | linux-dri-x86-64 \ |
Ian Romanick | 447cdd5 | 2004-10-13 19:56:15 +0000 | [diff] [blame] | 122 | linux-dri-ppc \ |
Jeremy Kolb | 97a3023 | 2006-02-19 22:30:46 +0000 | [diff] [blame] | 123 | linux-dri-xcb \ |
Jakob Bornecrantz | 9395fb6 | 2008-05-22 16:24:51 +0200 | [diff] [blame] | 124 | linux-egl \ |
Ian Romanick | dc6e2c7 | 2005-07-29 17:25:50 +0000 | [diff] [blame] | 125 | linux-indirect \ |
Keith Whitwell | a5cb1aa | 2005-04-29 17:31:10 +0000 | [diff] [blame] | 126 | linux-fbdev \ |
Brian Paul | 294d9ab | 2006-04-13 03:00:14 +0000 | [diff] [blame] | 127 | linux-ia64-icc \ |
128 | linux-ia64-icc-static \ | ||||
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 129 | linux-icc \ |
130 | linux-icc-static \ | ||||
Zack Rusin | b04430e | 2007-10-22 11:00:28 -0400 | [diff] [blame] | 131 | linux-llvm \ |
Brian Paul | 6a7b6a5 | 2009-12-18 11:17:06 -0700 | [diff] [blame] | 132 | linux-llvm-debug \ |
Chia-I Wu | 97ea8e9 | 2009-11-06 16:27:19 +0800 | [diff] [blame] | 133 | linux-opengl-es \ |
Brian Paul | 525eb0b | 2006-07-04 16:49:58 +0000 | [diff] [blame] | 134 | linux-osmesa \ |
Brian Paul | df37cde | 2009-05-18 08:46:17 -0600 | [diff] [blame] | 135 | linux-osmesa-static \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 136 | linux-osmesa16 \ |
137 | linux-osmesa16-static \ | ||||
138 | linux-osmesa32 \ | ||||
139 | linux-ppc \ | ||||
140 | linux-ppc-static \ | ||||
José Fonseca | 83a674a | 2007-09-19 23:43:36 +0100 | [diff] [blame] | 141 | linux-profile \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 142 | linux-sparc \ |
143 | linux-sparc5 \ | ||||
144 | linux-static \ | ||||
145 | linux-ultrasparc \ | ||||
Keith Whitwell | 6fb2356 | 2004-04-14 21:19:34 +0000 | [diff] [blame] | 146 | linux-tcc \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 147 | linux-x86 \ |
Keith Whitwell | e61df58 | 2004-04-14 12:44:07 +0000 | [diff] [blame] | 148 | linux-x86-debug \ |
Brian Paul | 7644bfb | 2005-03-03 01:44:42 +0000 | [diff] [blame] | 149 | linux-x86-32 \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 150 | linux-x86-64 \ |
Brian Paul | 42fa812 | 2005-05-07 16:59:58 +0000 | [diff] [blame] | 151 | linux-x86-64-debug \ |
José Fonseca | 59424e2 | 2007-09-28 17:17:11 +0000 | [diff] [blame] | 152 | linux-x86-64-profile \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 153 | linux-x86-64-static \ |
José Fonseca | 59424e2 | 2007-09-28 17:17:11 +0000 | [diff] [blame] | 154 | linux-x86-profile \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 155 | linux-x86-static \ |
156 | netbsd \ | ||||
157 | openbsd \ | ||||
158 | osf1 \ | ||||
Brian Paul | 294d9ab | 2006-04-13 03:00:14 +0000 | [diff] [blame] | 159 | osf1-static \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 160 | solaris-x86 \ |
161 | solaris-x86-gcc \ | ||||
Brian Paul | c717ffa | 2006-05-17 22:51:44 +0000 | [diff] [blame] | 162 | solaris-x86-gcc-static \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 163 | sunos4 \ |
164 | sunos4-gcc \ | ||||
165 | sunos4-static \ | ||||
166 | sunos5 \ | ||||
167 | sunos5-gcc \ | ||||
Brian Paul | 9073c40 | 2006-04-07 15:16:46 +0000 | [diff] [blame] | 168 | sunos5-64-gcc \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 169 | sunos5-smp \ |
Brian Paul | 294d9ab | 2006-04-13 03:00:14 +0000 | [diff] [blame] | 170 | sunos5-v8 \ |
171 | sunos5-v8-static \ | ||||
172 | sunos5-v9 \ | ||||
173 | sunos5-v9-static \ | ||||
Brian | 2c0b3d8 | 2007-07-31 09:32:10 -0600 | [diff] [blame] | 174 | sunos5-v9-cc-g++ \ |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 175 | ultrix-gcc: |
José Fonseca | c3168e0 | 2010-02-14 13:15:49 +0000 | [diff] [blame] | 176 | @ if test -f configs/current -o -L configs/current; then \ |
177 | if ! cmp configs/$@ configs/current > /dev/null; then \ | ||||
178 | echo "Please run 'make realclean' before changing configs" ; \ | ||||
179 | exit 1 ; \ | ||||
180 | fi ; \ | ||||
181 | else \ | ||||
182 | cd configs && rm -f current && ln -s $@ current ; \ | ||||
Brian Paul | 3163542 | 2006-08-03 16:58:06 +0000 | [diff] [blame] | 183 | fi |
Eric Anholt | 2fb5d15 | 2004-06-01 00:06:14 +0000 | [diff] [blame] | 184 | $(MAKE) default |
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 185 | |
186 | |||||
187 | # Rules for making release tarballs | ||||
188 | |||||
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 189 | PACKAGE_VERSION=7.12-devel |
190 | PACKAGE_DIR = Mesa-$(PACKAGE_VERSION) | ||||
191 | PACKAGE_NAME = MesaLib-$(PACKAGE_VERSION) | ||||
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 192 | |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 193 | EXTRA_FILES = \ |
194 | aclocal.m4 \ | ||||
195 | configure \ | ||||
196 | src/glsl/glsl_parser.cpp \ | ||||
197 | src/glsl/glsl_parser.h \ | ||||
198 | src/glsl/glsl_lexer.cpp \ | ||||
199 | src/glsl/glcpp/glcpp-lex.c \ | ||||
200 | src/glsl/glcpp/glcpp-parse.c \ | ||||
201 | src/glsl/glcpp/glcpp-parse.h \ | ||||
202 | src/mesa/program/lex.yy.c \ | ||||
203 | src/mesa/program/program_parse.tab.c \ | ||||
204 | src/mesa/program/program_parse.tab.h | ||||
Chia-I Wu | 238f782 | 2010-05-07 22:09:45 +0800 | [diff] [blame] | 205 | |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 206 | IGNORE_FILES = \ |
207 | -x autogen.sh | ||||
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 208 | |
Brian Paul | dff11bb | 2005-07-21 18:44:52 +0000 | [diff] [blame] | 209 | |
Ian Romanick | 654adaa | 2011-02-11 16:44:11 -0800 | [diff] [blame] | 210 | parsers: configure |
211 | -@touch $(TOP)/configs/current | ||||
212 | $(MAKE) -C src/glsl glsl_parser.cpp glsl_parser.h glsl_lexer.cpp | ||||
213 | $(MAKE) -C src/glsl/glcpp glcpp-lex.c glcpp-parse.c glcpp-parse.h | ||||
José Fonseca | 864eb84 | 2011-07-14 17:33:30 +0100 | [diff] [blame] | 214 | $(MAKE) -C src/mesa program/lex.yy.c program/program_parse.tab.c program/program_parse.tab.h |
Ian Romanick | 654adaa | 2011-02-11 16:44:11 -0800 | [diff] [blame] | 215 | |
Brian Paul | 281f855 | 2004-09-09 18:17:36 +0000 | [diff] [blame] | 216 | # Everything for new a Mesa release: |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 217 | ARCHIVES = $(PACKAGE_NAME).tar.gz \ |
218 | $(PACKAGE_NAME).tar.bz2 \ | ||||
219 | $(PACKAGE_NAME).zip \ | ||||
Brian Paul | 281f855 | 2004-09-09 18:17:36 +0000 | [diff] [blame] | 220 | |
Ian Romanick | 654adaa | 2011-02-11 16:44:11 -0800 | [diff] [blame] | 221 | tarballs: md5 |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 222 | rm -f ../$(PACKAGE_DIR) $(PACKAGE_NAME).tar |
Brian Paul | 281f855 | 2004-09-09 18:17:36 +0000 | [diff] [blame] | 223 | |
Dan Nicholson | 7279623 | 2007-12-05 17:23:00 -0800 | [diff] [blame] | 224 | # Helper for autoconf builds |
225 | ACLOCAL = aclocal | ||||
226 | ACLOCAL_FLAGS = | ||||
227 | AUTOCONF = autoconf | ||||
228 | AC_FLAGS = | ||||
Dan Nicholson | d368eed | 2008-05-05 18:24:21 -0700 | [diff] [blame] | 229 | aclocal.m4: configure.ac acinclude.m4 |
Dan Nicholson | 7279623 | 2007-12-05 17:23:00 -0800 | [diff] [blame] | 230 | $(ACLOCAL) $(ACLOCAL_FLAGS) |
Brian Paul | 8d04404 | 2011-07-19 21:11:53 -0600 | [diff] [blame] | 231 | configure: configure.ac aclocal.m4 acinclude.m4 |
Dan Nicholson | 7279623 | 2007-12-05 17:23:00 -0800 | [diff] [blame] | 232 | $(AUTOCONF) $(AC_FLAGS) |
233 | |||||
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 234 | manifest.txt: .git |
235 | ( \ | ||||
236 | ls -1 $(EXTRA_FILES) ; \ | ||||
237 | git ls-files $(IGNORE_FILES) \ | ||||
238 | ) | sed -e '/^\(.*\/\)\?\./d' -e "s@^@$(PACKAGE_DIR)/@" > $@ | ||||
Brian Paul | 24e2f61 | 2009-10-14 10:56:29 -0600 | [diff] [blame] | 239 | |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 240 | ../$(PACKAGE_DIR): |
241 | ln -s $(PWD) $@ | ||||
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 242 | |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 243 | $(PACKAGE_NAME).tar: parsers ../$(PACKAGE_DIR) manifest.txt |
244 | cd .. ; tar -cf $(PACKAGE_DIR)/$(PACKAGE_NAME).tar -T $(PACKAGE_DIR)/manifest.txt | ||||
Brian Paul | 80cef69 | 2005-09-10 16:54:05 +0000 | [diff] [blame] | 245 | |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 246 | $(PACKAGE_NAME).tar.gz: $(PACKAGE_NAME).tar ../$(PACKAGE_DIR) |
247 | gzip --stdout --best $(PACKAGE_NAME).tar > $(PACKAGE_NAME).tar.gz | ||||
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 248 | |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 249 | $(PACKAGE_NAME).tar.bz2: $(PACKAGE_NAME).tar |
250 | bzip2 --stdout --best $(PACKAGE_NAME).tar > $(PACKAGE_NAME).tar.bz2 | ||||
Brian Paul | 80cef69 | 2005-09-10 16:54:05 +0000 | [diff] [blame] | 251 | |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 252 | $(PACKAGE_NAME).zip: parsers ../$(PACKAGE_DIR) manifest.txt |
253 | rm -f $(PACKAGE_NAME).zip ; \ | ||||
Brian Paul | de0ee31 | 2004-03-26 15:19:11 +0000 | [diff] [blame] | 254 | cd .. ; \ |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 255 | zip -q -@ $(PACKAGE_NAME).zip < $(PACKAGE_DIR)/manifest.txt ; \ |
256 | mv $(PACKAGE_NAME).zip $(PACKAGE_DIR) | ||||
Brian Paul | 80cef69 | 2005-09-10 16:54:05 +0000 | [diff] [blame] | 257 | |
Ian Romanick | 1034284 | 2011-02-11 16:27:22 -0800 | [diff] [blame] | 258 | md5: $(ARCHIVES) |
José Fonseca | 9a7f84d | 2011-07-14 17:28:52 +0100 | [diff] [blame] | 259 | @-md5sum $(PACKAGE_NAME).tar.gz |
260 | @-md5sum $(PACKAGE_NAME).tar.bz2 | ||||
261 | @-md5sum $(PACKAGE_NAME).zip | ||||
Dan Nicholson | 50f7e6f | 2008-05-06 11:52:34 -0700 | [diff] [blame] | 262 | |
Brian Paul | 8d04404 | 2011-07-19 21:11:53 -0600 | [diff] [blame] | 263 | .PHONY: tarballs md5 |