Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 349 lines (303 sloc) 10.716 kb
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
1 #
2 # Authors:
3 # Michael Mehl (mehl@dfki.de)
4 #
5 # Contributors:
6 # Denys Duchier (duchier@ps.uni-sb.de)
a69d398 Packaging complete
schulte authored
7 # Christian Schulte <schulte@ps.uni-sb.de>
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
8 #
9 # Copyright:
a69d398 Packaging complete
schulte authored
10 # Michael Mehl, 1998
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
11 #
12 # Last change:
13 # $Date$ by $Author$
14 # $Revision$
15 #
16 # This file is part of Mozart, an implementation
17 # of Oz 3:
647ee41 mozart.ps.uni-sb.de --> www.mozart-oz.org
schulte authored
18 # http://www.mozart-oz.org
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
19 #
20 # See the file "LICENSE" or
647ee41 mozart.ps.uni-sb.de --> www.mozart-oz.org
schulte authored
21 # http://www.mozart-oz.org/LICENSE.html
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
22 # for information on usage and redistribution
23 # of this file, and for a DISCLAIMER OF ALL
24 # WARRANTIES.
25
26 # !!! THIS MAKEFILE REQUIRES GNU MAKE !!!!
27
28 ######################################################################
29 # path
30 ######################################################################
608fba9 changes to configure the whole tree
duchier authored
31
32 BUILDTOP= @BUILDTOP@
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
33 SRCTOP= @SRCTOP@
34 SRCDIR= @srcdir@
35 VPATH= @srcdir@
36 PREFIX= @prefix@
55c2007 added support for a bin target to create the binary tarballs
duchier authored
37 PLATFORM= @PLATFORM@
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
38
bf7e1c5 Have a single location for HOMEURL in aclocal.m4
schulte authored
39 HOMEURL= @HOMEURL@
40 HOMECACHE= @HOMECACHE@
41
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
42 BINDIR= $(PREFIX)/bin
51c7b89 updated lib->share
mehl authored
43 SHAREDIR= $(PREFIX)/share
44 TOOLSDIR= $(SHAREDIR)/tools
45 ELISPDIR= $(SHAREDIR)/elisp
46 IMAGESDIR= $(SHAREDIR)/images
bf7e1c5 Have a single location for HOMEURL in aclocal.m4
schulte authored
47 CACHEDIR= $(PREFIX)/$(HOMECACHE)
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
48 CACHETOOLS= $(CACHEDIR)/tools
49 CACHEBIN= $(CACHEDIR)/bin
51c7b89 updated lib->share
mehl authored
50 SHARECACHE= $(CACHEDIR)/share
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
51
52 ######################################################################
53 # programs
54 ######################################################################
c4b0b27 global configure
mehl authored
55
aceb872 set MAKE in top level file to the GNU make we found. this way, even if
duchier authored
56 MAKE= @MAKE@
c4b0b27 global configure
mehl authored
57 INSTALL= @INSTALL@
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
58 INSTALL_BIN= $(INSTALL) -m 555
59 INSTALL_FILE= $(INSTALL) -m 444
60 INSTALL_DIR= @INSTALL_DIR@
c4b0b27 global configure
mehl authored
61
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
62 ######################################################################
63 # other variables
64 ######################################################################
c4b0b27 global configure
mehl authored
65
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
66 OZVERSION= $(SRCTOP)/OZVERSION
1ccfcdd Support to build dates (thanks a lot to Denys) started
schulte authored
67 OZBUILD= @OZBUILDDATE@
60b7e28 Have the license also as rich text
schulte authored
68 FILES= README LICENSE LICENSE.html LICENSE.rtf
d376a05 only use PREFIX (no OZHOME)
mehl authored
69 ALLFILES= $(FILES:%=$(PREFIX)/%)
c4b0b27 global configure
mehl authored
70
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
71 # sub directories for recursive makes
f4482b2 -enable-subdirs
mehl authored
72 SUBDIRS= @oz_subdirs@
1fd0f6a demo are not in common
mehl authored
73
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
74 ######################################################################
75 # common targets
76 ######################################################################
c4b0b27 global configure
mehl authored
77
2c0bd2e 3rd: target platform to generate only platform dependent stuff
mehl authored
78 .PHONY: all bootstrap install clean veryclean distclean check
c4b0b27 global configure
mehl authored
79
1f9ba3c make all does not point to make bootstrap anymore; nevertheless make boo...
scheidhr authored
80 bootstrap::
c4b0b27 global configure
mehl authored
81
1f9ba3c make all does not point to make bootstrap anymore; nevertheless make boo...
scheidhr authored
82 all bootstrap clean veryclean depend distclean check install::
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
83 dirs="$(SUBDIRS)"; \
84 for i in $$dirs; do \
85 if (cd $$i && $(MAKE) $@); \
86 then true; \
87 else exit 1; \
88 fi; \
89 done
90
91 clean::
92 -rm -f *~
93
94 veryclean::
95 $(MAKE) clean SUBDIRS=
c4b0b27 global configure
mehl authored
96
608fba9 changes to configure the whole tree
duchier authored
97 distclean::
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
98 $(MAKE) veryclean SUBDIRS=
99 -rm -f Makefile config.cache config.log config.status
100
8eb3d1b Packing targets started
schulte authored
101 install:: $(PREFIX)
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
102
8eb3d1b Packing targets started
schulte authored
103 $(PREFIX):
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
104 $(INSTALL_DIR) $@
105
106 all:: Makefile
c4b0b27 global configure
mehl authored
107
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
108 Makefile: Makefile.in ./config.status
109 ./config.status
110
111 ./config.status: ./configure
112 ./config.status --recheck
113
608fba9 changes to configure the whole tree
duchier authored
114 install:: $(ALLFILES)
c4b0b27 global configure
mehl authored
115
6218037 install files works
mehl authored
116 $(ALLFILES): $(PREFIX)/% : % $(PREFIX)
117 $(INSTALL_FILE) $< $@
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
118
8eb3d1b Packing targets started
schulte authored
119 ######################################################################
120 # other targets
121 ######################################################################
122
6e4d875 Use YYMMDD as date (Thanks to Lars)
schulte authored
123 PLATFORMS= solaris-sparc aix3-rs600 freebsd-i486 hpux-700 \
124 irix6-mips linux-i486 netbsd-i486 netbsd-m68k netbsd-sparc \
45fbc7c freebsdelf-i486 works
schulte authored
125 osf1-alpha solaris-i486 sunos-sparc freebsdelf-i486
8eb3d1b Packing targets started
schulte authored
126 COMPRESS= gzip -9
60b7e28 Have the license also as rich text
schulte authored
127 ZIP= zip -r
8eb3d1b Packing targets started
schulte authored
128 TAR= tar
44383cb Imporved packing
schulte authored
129 PACKDIR= /tmp/pack
cf3608c Windows packing: not yet finished
schulte authored
130 MPD= $(PACKDIR)/mozart
131 WIN32CACHEDIR= $(MPD)/cache/$(HOMECACHE)
4ea150d merged from 1.2 branch
duchier authored
132 NOTDIRSRCTOP = $(notdir $(SRCTOP))
c4b0b27 global configure
mehl authored
133
108cdf9 Imporved
schulte authored
134 .PHONY: src doc $(PLATFORMS)
c4b0b27 global configure
mehl authored
135
108cdf9 Imporved
schulte authored
136 src: $(PACKDIR)
4ea150d merged from 1.2 branch
duchier authored
137 echo "[" $(NOTDIRSRCTOP) "]"
0049b08 merged from release branch
duchier authored
138 test -n "$(NOTDIRSRCTOP)" || { echo "bad"; exit 1; }
8eb3d1b Packing targets started
schulte authored
139 (cd $(PACKDIR); \
140 (cd $(SRCTOP)/..; \
4ea150d merged from 1.2 branch
duchier authored
141 $(TAR) -cf - $(NOTDIRSRCTOP)) | $(TAR) -xf - ; \
142 tbr=`find $(NOTDIRSRCTOP) -name CVS -type d 2>/dev/null` ; \
f0b83ad freebsd's 'find' does not like when its '-exec' removes directories;
popow authored
143 rm -rf $$tbr ; \
4ea150d merged from 1.2 branch
duchier authored
144 find $(NOTDIRSRCTOP) -name '.cvsignore' -type f -exec rm -f '{}' ';' ; \
145 mv $(NOTDIRSRCTOP) mozart-`$(OZVERSION)`.$(OZBUILD); \
83604fa Simpler rpms
schulte authored
146 $(TAR) -cf - mozart-`$(OZVERSION)`.$(OZBUILD) ) | \
1ccfcdd Support to build dates (thanks a lot to Denys) started
schulte authored
147 $(COMPRESS) > mozart-`$(OZVERSION)`.$(OZBUILD)-src.tar.gz
83604fa Simpler rpms
schulte authored
148 rm -rf $(PACKDIR)/mozart-`$(OZVERSION)`.$(OZBUILD)
c4b0b27 global configure
mehl authored
149
8dbc044 Be more accurate which belongs to which package
schulte authored
150 doc: $(PACKDIR) $(PACKDIR)/mozart
151 rm -f files.doc
152 $(MAKE) files.doc
153 rm -rf $(PACKDIR)/mozart
154 $(INSTALL_DIR) $(PACKDIR)/mozart
155 ( (cd $(PREFIX); \
156 $(TAR) -cf - -T $(BUILDTOP)/files.doc ) | \
157 (cd $(PACKDIR)/mozart; $(TAR) -xf - ) )
158 (cd $(PACKDIR); $(TAR) -cf - mozart ) | \
1ccfcdd Support to build dates (thanks a lot to Denys) started
schulte authored
159 $(COMPRESS) > mozart-`$(OZVERSION)`.$(OZBUILD)-doc.tar.gz
a69d398 Packaging complete
schulte authored
160 rm -rf $(PACKDIR)/mozart
8dbc044 Be more accurate which belongs to which package
schulte authored
161 rm -f files.doc
a69d398 Packaging complete
schulte authored
162
55c2007 added support for a bin target to create the binary tarballs
duchier authored
163 bin: $(PLATFORM)
164
a69d398 Packaging complete
schulte authored
165 $(PLATFORMS): $(PACKDIR) $(PACKDIR)/mozart
6652842 Ease multiple platform building
schulte authored
166 rm -f files.base files.base-$@ files.contrib files.contrib-$@
8dbc044 Be more accurate which belongs to which package
schulte authored
167 $(MAKE) files.base files.base-$@ files.contrib files.contrib-$@
6652842 Ease multiple platform building
schulte authored
168 rm -f files.all files.base-all files.contrib-all
8dbc044 Be more accurate which belongs to which package
schulte authored
169 cat files.base files.base-$@ > files.base-all
170 cat files.contrib files.contrib-$@ > files.contrib-all
6652842 Ease multiple platform building
schulte authored
171 cat files.base-$@ files.contrib-$@ > files.all
8dbc044 Be more accurate which belongs to which package
schulte authored
172 rm -rf $(PACKDIR)/mozart
173 $(INSTALL_DIR) $(PACKDIR)/mozart
174 ( (cd $(PREFIX); \
175 $(TAR) -cf - -T $(BUILDTOP)/files.base-all ) | \
176 (cd $(PACKDIR)/mozart; $(TAR) -xf - ) )
a69d398 Packaging complete
schulte authored
177 (cd $(PACKDIR); $(TAR) -cf - mozart ) | \
8dbc044 Be more accurate which belongs to which package
schulte authored
178 $(COMPRESS) > mozart-`$(OZVERSION)`.$(OZBUILD)-$@.tar.gz
a69d398 Packaging complete
schulte authored
179 rm -rf $(PACKDIR)/mozart
8dbc044 Be more accurate which belongs to which package
schulte authored
180 $(INSTALL_DIR) $(PACKDIR)/mozart
181 ( (cd $(PREFIX); \
182 $(TAR) -cf - -T $(BUILDTOP)/files.contrib-all ) | \
183 (cd $(PACKDIR)/mozart; $(TAR) -xf - ) )
184 (cd $(PACKDIR); $(TAR) -cf - mozart ) | \
185 $(COMPRESS) > mozart-`$(OZVERSION)`.$(OZBUILD)-$@-contrib.tar.gz
186 rm -rf $(PACKDIR)/mozart
6652842 Ease multiple platform building
schulte authored
187 $(INSTALL_DIR) $(PACKDIR)/mozart
188 ( (cd $(PREFIX); \
189 $(TAR) -cf - -T $(BUILDTOP)/files.all ) | \
190 (cd $(PACKDIR)/mozart; $(TAR) -xf - ) )
191 (cd $(PACKDIR); $(TAR) -cf - mozart ) | \
192 $(COMPRESS) > mozart-`$(OZVERSION)`.$(OZBUILD)-$@-internal.tar.gz
31274ef enhancements + merges from release branch
duchier authored
193 ldd $(PREFIX)/platform/$(PLATFORM)/emulator.exe \
194 $(PREFIX)/platform/$(PLATFORM)/tk.exe | \
195 sed 's/^.*emulator.exe:/emulator.exe dynamically linked against:/' | \
0049b08 merged from release branch
duchier authored
196 sed 's/^.*tk.exe:/tk.exe dynamically linked against:/' > README-`$(OZVERSION)`.$(OZBUILD)-$@
6652842 Ease multiple platform building
schulte authored
197 rm -rf $(PACKDIR)/mozart
8dbc044 Be more accurate which belongs to which package
schulte authored
198 rm -f files.base files.base-$@ files.contrib files.contrib-$@
6652842 Ease multiple platform building
schulte authored
199 rm -f files.base-all files.contrib-all files.all
c4b0b27 global configure
mehl authored
200
cf3608c Windows packing: not yet finished
schulte authored
201 $(PACKDIR) $(PACKDIR)/mozart:
8eb3d1b Packing targets started
schulte authored
202 $(INSTALL_DIR) $@
c4b0b27 global configure
mehl authored
203
4519a2b Added experimental target win32-i486-cygwin for packing the
kornstae authored
204 win32-i486-cygwin: $(PACKDIR) $(PACKDIR)/mozart
205 ( cd $(PREFIX) && \
206 $(TAR) c --exclude platform/win32-i486/oztool.sh -f - \
207 $(FILES) \
208 include share \
209 doc examples \
210 cache/x-oz/contrib cache/x-oz/system \
211 bin platform/win32-i486 \
212 ) | (cd $(MPD) && $(TAR) xf -)
213 find $(MPD) -name '*.so-*' -and \! \( -name '*.so-win32-i486' \) \
214 -exec rm -f '{}' ';'
215 rm -rf mozart-win32
216 $(INSTALL_DIR) mozart-win32
217 (cd $(MPD) && \
218 $(TAR) cf - $(FILES) bin cache/x-oz/system cache/x-oz/contrib \
219 doc examples \
220 include share/Init.ozf share/elisp platform) | \
221 (cd mozart-win32 && $(TAR) xf -)
222 $(INSTALL_DIR) mozart-win32/doc
223 $(INSTALL) -m 644 $(SRCTOP)/doc/utilities/ozdoc-iexplorer.css \
224 mozart-win32/doc/ozdoc.css
225 rm -rf $(PACKDIR)/mozart
226 rm -f mozart-win32.zip
227 $(ZIP) mozart-win32.zip mozart-win32
228 rm -rf mozart-win32
229
230 win32-i486-cross: $(PACKDIR) $(PACKDIR)/mozart
cf3608c Windows packing: not yet finished
schulte authored
231 ( cd $(PREFIX); \
232 $(TAR) cf - \
233 $(FILES) \
234 include share \
baf1d07 Fix for make win32-i486 due to changes in directory tree
dragan authored
235 doc examples \
236 cache/x-oz/contrib cache/x-oz/system \
cf3608c Windows packing: not yet finished
schulte authored
237 winbin platform/win32-i486 \
ad84848 Move GumpScanner.so and Bison.so into cache directory under windows,
kornstae authored
238 ) | (cd $(MPD); $(TAR) xf -)
cb887f3 use '!' for 'find' ('-not' causes problems for e.g. freebsd);
popow authored
239 find $(MPD) -name '*.so-*' -and \! \( -name '*.so-win32-i486' \) \
cf3608c Windows packing: not yet finished
schulte authored
240 -exec rm -f '{}' ';'
241 for i in ozc ozd ozl; do \
ad84848 Move GumpScanner.so and Bison.so into cache directory under windows,
kornstae authored
242 cat $(MPD)/winbin/ozwrapper.bin \
243 $(PREFIX)/bin/$$i > $(MPD)/winbin/$$i.exe; \
244 done
245 for i in convertTextPickle; do \
246 if [ -r $(PREFIX)/bin/$$i ]; then \
247 cat $(MPD)/winbin/ozwrapper.bin \
248 $(PREFIX)/bin/$$i > $(MPD)/winbin/$$i.exe; \
249 fi; \
250 done
cf3608c Windows packing: not yet finished
schulte authored
251 mv $(MPD)/winbin $(MPD)/bin
252 chmod -R a+x $(MPD)/bin
a638165 Okay! target win32-i486 creates three subdirs
schulte authored
253 rm -rf mozart-win32
254 $(INSTALL_DIR) mozart-win32
255 (cd $(MPD); \
baf1d07 Fix for make win32-i486 due to changes in directory tree
dragan authored
256 $(TAR) cf - $(FILES) bin cache/x-oz/system cache/x-oz/contrib \
257 doc examples \
a638165 Okay! target win32-i486 creates three subdirs
schulte authored
258 include share/Init.ozf share/elisp platform) | \
baf1d07 Fix for make win32-i486 due to changes in directory tree
dragan authored
259 (cd mozart-win32; $(TAR) xf -)
1c1c4f8 Use a different stylesheet for the CHM documentation
kornstae authored
260 $(INSTALL_DIR) mozart-win32/doc/doc
261 $(INSTALL_FILE) $(SRCTOP)/doc/utilities/ozdoc-iexplorer.css \
262 mozart-win32/doc/doc/ozdoc.css
7808cdd Shit
schulte authored
263 rm -rf /tmp/pack/mozart
7501766 Remove the mozart-win32.zip archive before adding files to avoid updatin...
kornstae authored
264 rm -f mozart-win32.zip
60b7e28 Have the license also as rich text
schulte authored
265 $(ZIP) -r mozart-win32.zip mozart-win32
4cf1bb3 Directly create zip for win32
schulte authored
266 rm -rf mozart-win32
ad84848 Move GumpScanner.so and Bison.so into cache directory under windows,
kornstae authored
267
8dbc044 Be more accurate which belongs to which package
schulte authored
268 files.base:
269 (cd $(PREFIX); \
270 find . \( -type f -or -type l \) -and \( \
c3b79ac -not --> !
schulte authored
271 ! -path './platform/*' -and \
4eeab0c Another last minute fix: exclude winbin for
schulte authored
272 ! -path './winbin/*' -and \
4052fec . some bugs in distribution/marshaling are fixed;
popow authored
273 ! -path './cache/x-oz/contrib/*' -and \
c5e5332 Merged from fixes
schulte authored
274 ! -path './cache/x-oz/doc/*' -and \
c3b79ac -not --> !
schulte authored
275 ! -path './doc/*' -and \
9a7c80a no print doc in 'platform' packages;
popow authored
276 ! -path './print/*' -and \
c3b79ac -not --> !
schulte authored
277 ! -path './examples/*' -and \
4052fec . some bugs in distribution/marshaling are fixed;
popow authored
278 ! -path './cache/x-oz/system/gump/examples/*' -and \
c3b79ac -not --> !
schulte authored
279 ! -path './share/doc/*' -and \
280 ! -path './bin/ozdoc' -and \
281 ! -path './bin/convertTextPickle' -and \
282 ! -name '*.so-*' \
8dbc044 Be more accurate which belongs to which package
schulte authored
283 \) ) > $@
284
4052fec . some bugs in distribution/marshaling are fixed;
popow authored
285
8dbc044 Be more accurate which belongs to which package
schulte authored
286 files.base-%:
287 (cd $(PREFIX); \
288 find . \( -type f -or -type l \) -and \
289 \( -path './platform/$*/*' -or \
4052fec . some bugs in distribution/marshaling are fixed;
popow authored
290 -path './cache/x-oz/boot/*.so-$*' -or \
291 -path './cache/x-oz/system/*.so-$*' \) \
8dbc044 Be more accurate which belongs to which package
schulte authored
292 ) > $@
293
294 files.contrib:
295 (cd $(PREFIX); \
296 find . \( -type f -or -type l \) -and \( \
4052fec . some bugs in distribution/marshaling are fixed;
popow authored
297 \( -path './cache/x-oz/contrib/*' -and ! -name '*.so-*' \) -or \
8dbc044 Be more accurate which belongs to which package
schulte authored
298 -path './bin/ozdoc' -or \
299 -path './bin/convertTextPickle' -or \
300 -path './share/doc/*' \
301 \) ) > $@
302
303 files.contrib-%:
304 (cd $(PREFIX); \
305 find . \( -type f -or -type l \) -and \
4052fec . some bugs in distribution/marshaling are fixed;
popow authored
306 -path './cache/x-oz/contrib/*' -and \
8dbc044 Be more accurate which belongs to which package
schulte authored
307 -name '*.so-$*' \
308 ) > $@
309
310 files.doc:
311 (cd $(PREFIX); \
ad84848 Move GumpScanner.so and Bison.so into cache directory under windows,
kornstae authored
312 find . \( -type f -or -type l \) -and \( \
313 -path './doc/*' -or \
4052fec . some bugs in distribution/marshaling are fixed;
popow authored
314 -path './print/*' -or \
315 -path './cache/x-oz/system/gump/examples/*' -or \
c5e5332 Merged from fixes
schulte authored
316 -path './cache/x-oz/doc/*' -or \
ad84848 Move GumpScanner.so and Bison.so into cache directory under windows,
kornstae authored
317 -path './examples/*' \
cb887f3 use '!' for 'find' ('-not' causes problems for e.g. freebsd);
popow authored
318 \) -and \! \( -path './doc/Mozart.hh?' \) ) > $@
4eeab0c Another last minute fix: exclude winbin for
schulte authored
319
0049b08 merged from release branch
duchier authored
320 ######################################################################
321 # standard library support
322 ######################################################################
4eeab0c Another last minute fix: exclude winbin for
schulte authored
323
0049b08 merged from release branch
duchier authored
324 STDLIB=@OZSTDLIB@
325 std: $(PACKDIR)
326 test -n "$(STDLIB)" || { echo "set STDLIB to source dir for mozart standard library"; exit 1; }
327 -rm -rf $(PACKDIR)/mozart-stdlib
328 mkdir $(PACKDIR)/mozart-stdlib
329 cd $(PACKDIR)/mozart-stdlib && ((cd $(STDLIB) && tar -cf - .) | tar -xf -)
330 -rm -rf $(PACKDIR)/mozart-$(shell $(OZVERSION)).$(OZBUILD)-std
331 mkdir $(PACKDIR)/mozart-$(shell $(OZVERSION)).$(OZBUILD)-std
332 cd $(PACKDIR)/mozart-stdlib && \
333 $(PREFIX)/bin/ozengine ./ozmake.ozf --create --package=mozart-stdlib.pkg && \
334 cp README ozmake.ozf mozart-stdlib.pkg $(PACKDIR)/mozart-$(shell $(OZVERSION)).$(OZBUILD)-std
335 (cd $(PACKDIR) && $(TAR) -cf - mozart-$(shell $(OZVERSION)).$(OZBUILD)-std) | \
336 $(COMPRESS) > mozart-$(shell $(OZVERSION)).$(OZBUILD)-std.tar.gz
337 rm -rf $(PACKDIR)/mozart-$(shell $(OZVERSION)).$(OZBUILD)-std $(PACKDIR)/mozart-stdlib
338
339 ifneq ($(STDLIB),)
340 install:: installstd
341 endif
342
24ffb10 The prefix passed to ozmake needs to be cygpathed.
kornstae authored
343 CYGPATH = $(SRCDIR)/share/lib/cygpath.sh
344 CYG_PREFIX = $(shell $(CYGPATH) $(PREFIX))
345
0049b08 merged from release branch
duchier authored
346 installstd:
347 test -n "$(STDLIB)" || { echo "set STDLIB to source dir for mozart standard library"; exit 1; }
24ffb10 The prefix passed to ozmake needs to be cygpathed.
kornstae authored
348 (cd $(STDLIB) && $(PREFIX)/bin/ozengine ./ozmake.ozf --install --prefix=$(CYG_PREFIX) --nosavedb)
Something went wrong with that request. Please try again.