Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 349 lines (302 sloc) 10.644 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
b4b1279 Merge Denys' rpmbuild fix:
glynn authored
136 ifeq ($(USER),root)
137 # make sure that what goes into the tar files for preparing the RPMs
138 # is actually owned by root, otherwise the owner and group of the file
139 # itself will be used, which aren't likely to exist on a user's machine.
140 TARTAR = $(TAR) --owner=root --group=root
141 else
142 TARTAR = $(TAR)
143 endif
144
108cdf9 Imporved
schulte authored
145 src: $(PACKDIR)
4ea150d merged from 1.2 branch
duchier authored
146 echo "[" $(NOTDIRSRCTOP) "]"
0049b08 merged from release branch
duchier authored
147 test -n "$(NOTDIRSRCTOP)" || { echo "bad"; exit 1; }
8eb3d1b Packing targets started
schulte authored
148 (cd $(PACKDIR); \
149 (cd $(SRCTOP)/..; \
4ea150d merged from 1.2 branch
duchier authored
150 $(TAR) -cf - $(NOTDIRSRCTOP)) | $(TAR) -xf - ; \
151 tbr=`find $(NOTDIRSRCTOP) -name CVS -type d 2>/dev/null` ; \
f0b83ad freebsd's 'find' does not like when its '-exec' removes directories;
popow authored
152 rm -rf $$tbr ; \
4ea150d merged from 1.2 branch
duchier authored
153 find $(NOTDIRSRCTOP) -name '.cvsignore' -type f -exec rm -f '{}' ';' ; \
154 mv $(NOTDIRSRCTOP) mozart-`$(OZVERSION)`.$(OZBUILD); \
b4b1279 Merge Denys' rpmbuild fix:
glynn authored
155 $(TARTAR) -cf - mozart-`$(OZVERSION)`.$(OZBUILD) ) | \
1ccfcdd Support to build dates (thanks a lot to Denys) started
schulte authored
156 $(COMPRESS) > mozart-`$(OZVERSION)`.$(OZBUILD)-src.tar.gz
83604fa Simpler rpms
schulte authored
157 rm -rf $(PACKDIR)/mozart-`$(OZVERSION)`.$(OZBUILD)
c4b0b27 global configure
mehl authored
158
8dbc044 Be more accurate which belongs to which package
schulte authored
159 doc: $(PACKDIR) $(PACKDIR)/mozart
160 rm -f files.doc
161 $(MAKE) files.doc
162 rm -rf $(PACKDIR)/mozart
163 $(INSTALL_DIR) $(PACKDIR)/mozart
164 ( (cd $(PREFIX); \
165 $(TAR) -cf - -T $(BUILDTOP)/files.doc ) | \
166 (cd $(PACKDIR)/mozart; $(TAR) -xf - ) )
b4b1279 Merge Denys' rpmbuild fix:
glynn authored
167 (cd $(PACKDIR); $(TARTAR) -cf - mozart ) | \
1ccfcdd Support to build dates (thanks a lot to Denys) started
schulte authored
168 $(COMPRESS) > mozart-`$(OZVERSION)`.$(OZBUILD)-doc.tar.gz
a69d398 Packaging complete
schulte authored
169 rm -rf $(PACKDIR)/mozart
8dbc044 Be more accurate which belongs to which package
schulte authored
170 rm -f files.doc
a69d398 Packaging complete
schulte authored
171
55c2007 added support for a bin target to create the binary tarballs
duchier authored
172 bin: $(PLATFORM)
173
a69d398 Packaging complete
schulte authored
174 $(PLATFORMS): $(PACKDIR) $(PACKDIR)/mozart
6652842 Ease multiple platform building
schulte authored
175 rm -f files.base files.base-$@ files.contrib files.contrib-$@
8dbc044 Be more accurate which belongs to which package
schulte authored
176 $(MAKE) files.base files.base-$@ files.contrib files.contrib-$@
e5696b3 Merged configuration and .in files from the release branch.
glynn authored
177 rm -f files.all
178 cat files.base files.base-$@ files.contrib files.contrib-$@ > files.all
8dbc044 Be more accurate which belongs to which package
schulte authored
179 rm -rf $(PACKDIR)/mozart
180 $(INSTALL_DIR) $(PACKDIR)/mozart
181 ( (cd $(PREFIX); \
e5696b3 Merged configuration and .in files from the release branch.
glynn authored
182 $(TAR) -cf - -T $(BUILDTOP)/files.all ) | \
8dbc044 Be more accurate which belongs to which package
schulte authored
183 (cd $(PACKDIR)/mozart; $(TAR) -xf - ) )
b4b1279 Merge Denys' rpmbuild fix:
glynn authored
184 (cd $(PACKDIR); $(TARTAR) -cf - mozart ) | \
8dbc044 Be more accurate which belongs to which package
schulte authored
185 $(COMPRESS) > mozart-`$(OZVERSION)`.$(OZBUILD)-$@.tar.gz
a69d398 Packaging complete
schulte authored
186 rm -rf $(PACKDIR)/mozart
31274ef enhancements + merges from release branch
duchier authored
187 ldd $(PREFIX)/platform/$(PLATFORM)/emulator.exe \
188 $(PREFIX)/platform/$(PLATFORM)/tk.exe | \
189 sed 's/^.*emulator.exe:/emulator.exe dynamically linked against:/' | \
0049b08 merged from release branch
duchier authored
190 sed 's/^.*tk.exe:/tk.exe dynamically linked against:/' > README-`$(OZVERSION)`.$(OZBUILD)-$@
e5696b3 Merged configuration and .in files from the release branch.
glynn authored
191 rm -f files.base files.base-$@ files.contrib files.contrib-$@ files.all
c4b0b27 global configure
mehl authored
192
cf3608c Windows packing: not yet finished
schulte authored
193 $(PACKDIR) $(PACKDIR)/mozart:
b4b1279 Merge Denys' rpmbuild fix:
glynn authored
194 export INSTALL_DIR_CHMOD=777 && $(INSTALL_DIR) $@
c4b0b27 global configure
mehl authored
195
4519a2b Added experimental target win32-i486-cygwin for packing the
kornstae authored
196 win32-i486-cygwin: $(PACKDIR) $(PACKDIR)/mozart
197 ( cd $(PREFIX) && \
198 $(TAR) c --exclude platform/win32-i486/oztool.sh -f - \
199 $(FILES) \
200 include share \
201 doc examples \
202 cache/x-oz/contrib cache/x-oz/system \
203 bin platform/win32-i486 \
204 ) | (cd $(MPD) && $(TAR) xf -)
6e92089 merged from release branch
duchier authored
205 find $(MPD) -name '*.so-*' -a \! \( -name '*.so-win32-i486' \) \
4519a2b Added experimental target win32-i486-cygwin for packing the
kornstae authored
206 -exec rm -f '{}' ';'
207 rm -rf mozart-win32
208 $(INSTALL_DIR) mozart-win32
209 (cd $(MPD) && \
210 $(TAR) cf - $(FILES) bin cache/x-oz/system cache/x-oz/contrib \
211 doc examples \
212 include share/Init.ozf share/elisp platform) | \
213 (cd mozart-win32 && $(TAR) xf -)
214 $(INSTALL_DIR) mozart-win32/doc
215 $(INSTALL) -m 644 $(SRCTOP)/doc/utilities/ozdoc-iexplorer.css \
216 mozart-win32/doc/ozdoc.css
217 rm -rf $(PACKDIR)/mozart
218 rm -f mozart-win32.zip
219 $(ZIP) mozart-win32.zip mozart-win32
220 rm -rf mozart-win32
221
222 win32-i486-cross: $(PACKDIR) $(PACKDIR)/mozart
cf3608c Windows packing: not yet finished
schulte authored
223 ( cd $(PREFIX); \
224 $(TAR) cf - \
225 $(FILES) \
226 include share \
baf1d07 Fix for make win32-i486 due to changes in directory tree
dragan authored
227 doc examples \
228 cache/x-oz/contrib cache/x-oz/system \
cf3608c Windows packing: not yet finished
schulte authored
229 winbin platform/win32-i486 \
ad84848 Move GumpScanner.so and Bison.so into cache directory under windows,
kornstae authored
230 ) | (cd $(MPD); $(TAR) xf -)
6e92089 merged from release branch
duchier authored
231 find $(MPD) -name '*.so-*' -a \! \( -name '*.so-win32-i486' \) \
cf3608c Windows packing: not yet finished
schulte authored
232 -exec rm -f '{}' ';'
233 for i in ozc ozd ozl; do \
ad84848 Move GumpScanner.so and Bison.so into cache directory under windows,
kornstae authored
234 cat $(MPD)/winbin/ozwrapper.bin \
235 $(PREFIX)/bin/$$i > $(MPD)/winbin/$$i.exe; \
236 done
237 for i in convertTextPickle; do \
238 if [ -r $(PREFIX)/bin/$$i ]; then \
239 cat $(MPD)/winbin/ozwrapper.bin \
240 $(PREFIX)/bin/$$i > $(MPD)/winbin/$$i.exe; \
241 fi; \
242 done
cf3608c Windows packing: not yet finished
schulte authored
243 mv $(MPD)/winbin $(MPD)/bin
244 chmod -R a+x $(MPD)/bin
a638165 Okay! target win32-i486 creates three subdirs
schulte authored
245 rm -rf mozart-win32
246 $(INSTALL_DIR) mozart-win32
247 (cd $(MPD); \
baf1d07 Fix for make win32-i486 due to changes in directory tree
dragan authored
248 $(TAR) cf - $(FILES) bin cache/x-oz/system cache/x-oz/contrib \
249 doc examples \
a638165 Okay! target win32-i486 creates three subdirs
schulte authored
250 include share/Init.ozf share/elisp platform) | \
baf1d07 Fix for make win32-i486 due to changes in directory tree
dragan authored
251 (cd mozart-win32; $(TAR) xf -)
1c1c4f8 Use a different stylesheet for the CHM documentation
kornstae authored
252 $(INSTALL_DIR) mozart-win32/doc/doc
253 $(INSTALL_FILE) $(SRCTOP)/doc/utilities/ozdoc-iexplorer.css \
254 mozart-win32/doc/doc/ozdoc.css
7808cdd Shit
schulte authored
255 rm -rf /tmp/pack/mozart
7501766 Remove the mozart-win32.zip archive before adding files to avoid updatin...
kornstae authored
256 rm -f mozart-win32.zip
60b7e28 Have the license also as rich text
schulte authored
257 $(ZIP) -r mozart-win32.zip mozart-win32
4cf1bb3 Directly create zip for win32
schulte authored
258 rm -rf mozart-win32
ad84848 Move GumpScanner.so and Bison.so into cache directory under windows,
kornstae authored
259
8dbc044 Be more accurate which belongs to which package
schulte authored
260 files.base:
261 (cd $(PREFIX); \
6e92089 merged from release branch
duchier authored
262 find . \( -type f -o -type l \) -a \( \
263 ! -path './platform/*' -a \
264 ! -path './winbin/*' -a \
265 ! -path './cache/x-oz/contrib/*' -a \
266 ! -path './cache/x-oz/doc/*' -a \
267 ! -path './doc/*' -a \
268 ! -path './print/*' -a \
269 ! -path './examples/*' -a \
270 ! -path './cache/x-oz/system/gump/examples/*' -a \
271 ! -path './share/doc/*' -a \
272 ! -path './bin/ozdoc' -a \
273 ! -path './bin/convertTextPickle' -a \
e5696b3 Merged configuration and .in files from the release branch.
glynn authored
274 ! -name '*.so-*' -a \
275 ! -path './share/elisp/Fontifier.el' \
8dbc044 Be more accurate which belongs to which package
schulte authored
276 \) ) > $@
277
4052fec . some bugs in distribution/marshaling are fixed;
popow authored
278
8dbc044 Be more accurate which belongs to which package
schulte authored
279 files.base-%:
280 (cd $(PREFIX); \
6e92089 merged from release branch
duchier authored
281 find . \( -type f -o -type l \) -a \
282 \( -path './platform/$*/*' -o \
283 -path './cache/x-oz/boot/*.so-$*' -o \
4052fec . some bugs in distribution/marshaling are fixed;
popow authored
284 -path './cache/x-oz/system/*.so-$*' \) \
8dbc044 Be more accurate which belongs to which package
schulte authored
285 ) > $@
286
287 files.contrib:
288 (cd $(PREFIX); \
6e92089 merged from release branch
duchier authored
289 find . \( -type f -o -type l \) -a \( \
290 \( -path './cache/x-oz/contrib/*' -a ! -name '*.so-*' \) -o \
291 -path './bin/ozdoc' -o \
292 -path './bin/convertTextPickle' -o \
e5696b3 Merged configuration and .in files from the release branch.
glynn authored
293 -path './share/doc/*' -o \
294 -path './share/elisp/Fontifier.el' \
8dbc044 Be more accurate which belongs to which package
schulte authored
295 \) ) > $@
296
297 files.contrib-%:
298 (cd $(PREFIX); \
6e92089 merged from release branch
duchier authored
299 find . \( -type f -o -type l \) -a \
300 -path './cache/x-oz/contrib/*' -a \
8dbc044 Be more accurate which belongs to which package
schulte authored
301 -name '*.so-$*' \
302 ) > $@
303
304 files.doc:
305 (cd $(PREFIX); \
6e92089 merged from release branch
duchier authored
306 find . \( -type f -o -type l \) -a \( \
307 -path './doc/*' -o \
308 -path './cache/x-oz/system/gump/examples/*' -o \
309 -path './cache/x-oz/doc/*' -o \
ad84848 Move GumpScanner.so and Bison.so into cache directory under windows,
kornstae authored
310 -path './examples/*' \
e5696b3 Merged configuration and .in files from the release branch.
glynn authored
311 \) -a \! \( -path './doc/Mozart.hh?' -o \
312 -path './doc/add-ons/*/*' \) ) > $@
4eeab0c Another last minute fix: exclude winbin for
schulte authored
313
0049b08 merged from release branch
duchier authored
314 ######################################################################
315 # standard library support
316 ######################################################################
4eeab0c Another last minute fix: exclude winbin for
schulte authored
317
0049b08 merged from release branch
duchier authored
318 STDLIB=@OZSTDLIB@
319 std: $(PACKDIR)
320 test -n "$(STDLIB)" || { echo "set STDLIB to source dir for mozart standard library"; exit 1; }
321 -rm -rf $(PACKDIR)/mozart-stdlib
322 mkdir $(PACKDIR)/mozart-stdlib
323 cd $(PACKDIR)/mozart-stdlib && ((cd $(STDLIB) && tar -cf - .) | tar -xf -)
324 -rm -rf $(PACKDIR)/mozart-$(shell $(OZVERSION)).$(OZBUILD)-std
325 mkdir $(PACKDIR)/mozart-$(shell $(OZVERSION)).$(OZBUILD)-std
326 cd $(PACKDIR)/mozart-stdlib && \
8a99a40 use the version specific ozmake for stdlib
duchier authored
327 cp ozmake-$(shell $(OZVERSION)).ozf ozmake.ozf && \
0049b08 merged from release branch
duchier authored
328 $(PREFIX)/bin/ozengine ./ozmake.ozf --create --package=mozart-stdlib.pkg && \
329 cp README ozmake.ozf mozart-stdlib.pkg $(PACKDIR)/mozart-$(shell $(OZVERSION)).$(OZBUILD)-std
b4b1279 Merge Denys' rpmbuild fix:
glynn authored
330 (cd $(PACKDIR) && $(TARTAR) -cf - mozart-$(shell $(OZVERSION)).$(OZBUILD)-std) | \
0049b08 merged from release branch
duchier authored
331 $(COMPRESS) > mozart-$(shell $(OZVERSION)).$(OZBUILD)-std.tar.gz
332 rm -rf $(PACKDIR)/mozart-$(shell $(OZVERSION)).$(OZBUILD)-std $(PACKDIR)/mozart-stdlib
333
334 ifneq ($(STDLIB),)
335 install:: installstd
336 endif
337
24ffb10 The prefix passed to ozmake needs to be cygpathed.
kornstae authored
338 CYGPATH = $(SRCDIR)/share/lib/cygpath.sh
339 CYG_PREFIX = $(shell $(CYGPATH) $(PREFIX))
340
0049b08 merged from release branch
duchier authored
341 installstd:
342 test -n "$(STDLIB)" || { echo "set STDLIB to source dir for mozart standard library"; exit 1; }
8a99a40 use the version specific ozmake for stdlib
duchier authored
343 (cd $(STDLIB) && cp ozmake-$(shell $(OZVERSION)).ozf ozmake.ozf && \
62608b5 merged from release branch
duchier authored
344 if test -r mozart-stdlib.pkg; then \
345 $(PREFIX)/bin/ozengine ./ozmake.ozf --install --prefix=$(CYG_PREFIX) --nosavedb --package=mozart-stdlib.pkg; \
346 else \
347 $(PREFIX)/bin/ozengine ./ozmake.ozf --install --prefix=$(CYG_PREFIX) --nosavedb; \
348 fi)
Something went wrong with that request. Please try again.