Skip to content
This repository
Newer
Older
100644 192 lines (158 sloc) 5.218 kb
2d6b53ad » mehl
1998-04-22 first steps to cleanup Makefiles (see mozart/README.Makefiles)
1 #
2 # Authors:
3 # Michael Mehl (mehl@dfki.de)
4 #
5 # Contributors:
6 # Denys Duchier (duchier@ps.uni-sb.de)
a69d398f » schulte
1998-12-01 Packaging complete
7 # Christian Schulte <schulte@ps.uni-sb.de>
2d6b53ad » mehl
1998-04-22 first steps to cleanup Makefiles (see mozart/README.Makefiles)
8 #
9 # Copyright:
a69d398f » schulte
1998-12-01 Packaging complete
10 # Michael Mehl, 1998
2d6b53ad » mehl
1998-04-22 first steps to cleanup Makefiles (see mozart/README.Makefiles)
11 #
12 # Last change:
13 # $Date$ by $Author$
14 # $Revision$
15 #
16 # This file is part of Mozart, an implementation
17 # of Oz 3:
314bd338 » schulte
1998-07-01 Enterd URLs for Mozart home and license
18 # http://mozart.ps.uni-sb.de
2d6b53ad » mehl
1998-04-22 first steps to cleanup Makefiles (see mozart/README.Makefiles)
19 #
20 # See the file "LICENSE" or
314bd338 » schulte
1998-07-01 Enterd URLs for Mozart home and license
21 # http://mozart.ps.uni-sb.de/LICENSE.html
2d6b53ad » mehl
1998-04-22 first steps to cleanup Makefiles (see mozart/README.Makefiles)
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 ######################################################################
608fba90 » duchier
1998-04-12 changes to configure the whole tree
31
32 BUILDTOP= @BUILDTOP@
2d6b53ad » mehl
1998-04-22 first steps to cleanup Makefiles (see mozart/README.Makefiles)
33 SRCTOP= @SRCTOP@
34 SRCDIR= @srcdir@
35 VPATH= @srcdir@
36 PREFIX= @prefix@
37
bf7e1c52 » schulte
1998-09-18 Have a single location for HOMEURL in aclocal.m4
38 HOMEURL= @HOMEURL@
39 HOMECACHE= @HOMECACHE@
40
2d6b53ad » mehl
1998-04-22 first steps to cleanup Makefiles (see mozart/README.Makefiles)
41 BINDIR= $(PREFIX)/bin
51c7b893 » mehl
1998-06-29 updated lib->share
42 SHAREDIR= $(PREFIX)/share
43 TOOLSDIR= $(SHAREDIR)/tools
44 ELISPDIR= $(SHAREDIR)/elisp
45 IMAGESDIR= $(SHAREDIR)/images
bf7e1c52 » schulte
1998-09-18 Have a single location for HOMEURL in aclocal.m4
46 CACHEDIR= $(PREFIX)/$(HOMECACHE)
2d6b53ad » mehl
1998-04-22 first steps to cleanup Makefiles (see mozart/README.Makefiles)
47 CACHETOOLS= $(CACHEDIR)/tools
48 CACHEBIN= $(CACHEDIR)/bin
51c7b893 » mehl
1998-06-29 updated lib->share
49 SHARECACHE= $(CACHEDIR)/share
2d6b53ad » mehl
1998-04-22 first steps to cleanup Makefiles (see mozart/README.Makefiles)
50
51 ######################################################################
52 # programs
53 ######################################################################
c4b0b275 » mehl
1998-01-23 global configure
54
aceb872a » duchier
1998-09-10 set MAKE in top level file to the GNU make we found. this way, even if
55 MAKE= @MAKE@
c4b0b275 » mehl
1998-01-23 global configure
56 INSTALL= @INSTALL@
2d6b53ad » mehl
1998-04-22 first steps to cleanup Makefiles (see mozart/README.Makefiles)
57 INSTALL_BIN= $(INSTALL) -m 555
58 INSTALL_FILE= $(INSTALL) -m 444
59 INSTALL_DIR= @INSTALL_DIR@
c4b0b275 » mehl
1998-01-23 global configure
60
2d6b53ad » mehl
1998-04-22 first steps to cleanup Makefiles (see mozart/README.Makefiles)
61 ######################################################################
62 # other variables
63 ######################################################################
c4b0b275 » mehl
1998-01-23 global configure
64
2d6b53ad » mehl
1998-04-22 first steps to cleanup Makefiles (see mozart/README.Makefiles)
65 OZVERSION= $(SRCTOP)/OZVERSION
4c9b92b5 » schulte
1998-11-24 Added LICENSE.html
66 FILES= LICENSE LICENSE.html
d376a056 » mehl
1998-02-17 only use PREFIX (no OZHOME)
67 ALLFILES= $(FILES:%=$(PREFIX)/%)
c4b0b275 » mehl
1998-01-23 global configure
68
2d6b53ad » mehl
1998-04-22 first steps to cleanup Makefiles (see mozart/README.Makefiles)
69 # sub directories for recursive makes
f4482b22 » mehl
1998-07-27 -enable-subdirs
70 SUBDIRS= @oz_subdirs@
1fd0f6a0 » mehl
1998-03-11 demo are not in common
71
2d6b53ad » mehl
1998-04-22 first steps to cleanup Makefiles (see mozart/README.Makefiles)
72 ######################################################################
73 # common targets
74 ######################################################################
c4b0b275 » mehl
1998-01-23 global configure
75
2c0bd2e0 » mehl
1998-07-20 3rd: target platform to generate only platform dependent stuff
76 .PHONY: all bootstrap install clean veryclean distclean check
c4b0b275 » mehl
1998-01-23 global configure
77
608fba90 » duchier
1998-04-12 changes to configure the whole tree
78 all:: bootstrap
c4b0b275 » mehl
1998-01-23 global configure
79
2d6b53ad » mehl
1998-04-22 first steps to cleanup Makefiles (see mozart/README.Makefiles)
80 bootstrap clean veryclean depend distclean check install::
81 dirs="$(SUBDIRS)"; \
82 for i in $$dirs; do \
83 if (cd $$i && $(MAKE) $@); \
84 then true; \
85 else exit 1; \
86 fi; \
87 done
88
89 clean::
90 -rm -f *~
91
92 veryclean::
93 $(MAKE) clean SUBDIRS=
c4b0b275 » mehl
1998-01-23 global configure
94
608fba90 » duchier
1998-04-12 changes to configure the whole tree
95 distclean::
2d6b53ad » mehl
1998-04-22 first steps to cleanup Makefiles (see mozart/README.Makefiles)
96 $(MAKE) veryclean SUBDIRS=
97 -rm -f Makefile config.cache config.log config.status
98
8eb3d1ba » schulte
1998-12-01 Packing targets started
99 install:: $(PREFIX)
2d6b53ad » mehl
1998-04-22 first steps to cleanup Makefiles (see mozart/README.Makefiles)
100
8eb3d1ba » schulte
1998-12-01 Packing targets started
101 $(PREFIX):
2d6b53ad » mehl
1998-04-22 first steps to cleanup Makefiles (see mozart/README.Makefiles)
102 $(INSTALL_DIR) $@
103
104 all:: Makefile
c4b0b275 » mehl
1998-01-23 global configure
105
2d6b53ad » mehl
1998-04-22 first steps to cleanup Makefiles (see mozart/README.Makefiles)
106 Makefile: Makefile.in ./config.status
107 ./config.status
108
109 ./config.status: ./configure
110 ./config.status --recheck
111
608fba90 » duchier
1998-04-12 changes to configure the whole tree
112 install:: $(ALLFILES)
c4b0b275 » mehl
1998-01-23 global configure
113
62180378 » mehl
1998-07-07 install files works
114 $(ALLFILES): $(PREFIX)/% : % $(PREFIX)
115 $(INSTALL_FILE) $< $@
2d6b53ad » mehl
1998-04-22 first steps to cleanup Makefiles (see mozart/README.Makefiles)
116
8eb3d1ba » schulte
1998-12-01 Packing targets started
117 ######################################################################
118 # other targets
119 ######################################################################
120
121 PLATFORMS= solaris-sparc aix3-rs600 freebsd-i486 hpux-700\
122 irix5-mips linux-i486 netbsd-i486 netbsd-m68k netbsd-sparc\
123 osf1-alpha solaris-i486 sunos-sparc win32-i486
a69d398f » schulte
1998-12-01 Packaging complete
124 PLATFORMFILES= LICENSE LICENSE.html bin cache contrib include share
8eb3d1ba » schulte
1998-12-01 Packing targets started
125 COMPRESS= gzip -9
126 TAR= tar
5ac90d48 » scheidhr
1998-12-04 Windows installation
127 WINCACHEDIR= oz3/cache/$(HOMECACHE)
44383cb7 » schulte
1998-12-01 Imporved packing
128 PACKDIR= /tmp/pack
c4b0b275 » mehl
1998-01-23 global configure
129
130
108cdf97 » schulte
1998-12-01 Imporved
131 .PHONY: src doc $(PLATFORMS)
c4b0b275 » mehl
1998-01-23 global configure
132
108cdf97 » schulte
1998-12-01 Imporved
133 src: $(PACKDIR)
8eb3d1ba » schulte
1998-12-01 Packing targets started
134 (cd $(PACKDIR); \
135 (cd $(SRCTOP)/..; \
136 $(TAR) -cf - mozart) | $(TAR) -xf - ; \
a69d398f » schulte
1998-12-01 Packaging complete
137 find mozart -name CVS -type d -exec rm -rf '{}' ';' 2>/dev/null ; \
138 find mozart -name '.cvsignore' -type f -exec rm -f '{}' ';' ; \
44383cb7 » schulte
1998-12-01 Imporved packing
139 $(TAR) -cf - mozart ) | \
9b74e960 » schulte
1998-12-03 Changed version to OZVERSION.BUILDDATE
140 $(COMPRESS) > mozart-`$(OZVERSION)`.`date +"%m%d%y"`-src.tar.gz
44383cb7 » schulte
1998-12-01 Imporved packing
141 rm -rf $(PACKDIR)/mozart
c4b0b275 » mehl
1998-01-23 global configure
142
d16e421e » schulte
1998-12-02 Works also if mozart/doc is a link
143 doc: $(PACKDIR) $(PACKDIR)/mozart/doc
8eb3d1ba » schulte
1998-12-01 Packing targets started
144 (cd $(PACKDIR); \
d16e421e » schulte
1998-12-02 Works also if mozart/doc is a link
145 (cd $(PREFIX)/doc; \
146 $(TAR) -cf - .) | (cd mozart/doc; $(TAR) -xf -); \
a69d398f » schulte
1998-12-01 Packaging complete
147 $(TAR) -cf - mozart ) | \
9b74e960 » schulte
1998-12-03 Changed version to OZVERSION.BUILDDATE
148 $(COMPRESS) > mozart-`$(OZVERSION)`.`date +"%m%d%y"`-doc.tar.gz
a69d398f » schulte
1998-12-01 Packaging complete
149 rm -rf $(PACKDIR)/mozart
150
151 $(PLATFORMS): $(PACKDIR) $(PACKDIR)/mozart
152 (cd $(PACKDIR); \
153 (cd $(PREFIX); \
154 $(TAR) -cf - $(PLATFORMFILES) platform/$@ ) | \
155 (cd mozart; $(TAR) -xf - ); \
156 find mozart -name '*.so-*' \
157 -not -name \*.so-$@ -exec rm -f '{}' ';' )
158 (cd $(PACKDIR); $(TAR) -cf - mozart/contrib ) | \
9b74e960 » schulte
1998-12-03 Changed version to OZVERSION.BUILDDATE
159 $(COMPRESS) > mozart-`$(OZVERSION)`.`date +"%m%d%y"`-$@-contrib.tar.gz
a69d398f » schulte
1998-12-01 Packaging complete
160 rm -rf $(PACKDIR)/mozart/contrib
161 (cd $(PACKDIR); $(TAR) -cf - mozart ) | \
9b74e960 » schulte
1998-12-03 Changed version to OZVERSION.BUILDDATE
162 $(COMPRESS) > mozart-`$(OZVERSION)`.`date +"%m%d%y"`-$@.tar.gz
a69d398f » schulte
1998-12-01 Packaging complete
163 rm -rf $(PACKDIR)/mozart
c4b0b275 » mehl
1998-01-23 global configure
164
1fd0f6a0 » mehl
1998-03-11 demo are not in common
165
d16e421e » schulte
1998-12-02 Works also if mozart/doc is a link
166 $(PACKDIR) $(PACKDIR)/mozart $(PACKDIR)/mozart/doc:
8eb3d1ba » schulte
1998-12-01 Packing targets started
167 $(INSTALL_DIR) $@
c4b0b275 » mehl
1998-01-23 global configure
168
169 oz-win::
5ac90d48 » scheidhr
1998-12-04 Windows installation
170 rm -rf mozart oz3
171 $(INSTALL_DIR) oz3
172 ( cd $(PREFIX); \
173 $(TAR) cf - \
174 LICENSE \
175 include share \
176 contrib doc\
177 platform/winbin platform/win32-i486 \
178 ) | (cd oz3; $(TAR) xf -)
51c7b893 » mehl
1998-06-29 updated lib->share
179 $(INSTALL_DIR) $(WINCACHEDIR)/share
61e1d077 » scheidhr
1998-12-01 fix cache dir problems on Windows
180 $(INSTALL_DIR) $(WINCACHEDIR)/doc/demo
5ac90d48 » scheidhr
1998-12-04 Windows installation
181 mv oz3/share/images oz3/share/?*.ozf $(WINCACHEDIR)/share
c6e0795d » scheidhr
1998-12-04 windows installation
182 cp -r oz3/doc/demo/applets $(WINCACHEDIR)/doc/demo
5ac90d48 » scheidhr
1998-12-04 Windows installation
183 find oz3 -name '*.so-*' -not -name '*.so-win32-i486' -exec rm -f '{}' ';'
00d7f482 » scheidhr
1998-12-04 windows installation
184 rm -rf oz3/share/doc oz3/platform/win32-i486/oztool.sh
5ac90d48 » scheidhr
1998-12-04 Windows installation
185 mv $(WINCACHEDIR)/share/Init.ozf oz3/share
79077677 » scheidhr
1998-11-17 Windows
186 for i in ozc ozd ozl; do \
5ac90d48 » scheidhr
1998-12-04 Windows installation
187 cat oz3/platform/winbin/ozwrapper.exe \
188 $(PREFIX)/bin/$$i > oz3/platform/winbin/$$i.exe;\
79077677 » scheidhr
1998-11-17 Windows
189 done
5ac90d48 » scheidhr
1998-12-04 Windows installation
190 i386-mingw32-strip oz3/platform/win32-i486/*.exe
191 mv oz3/platform/winbin oz3/bin
8206a76f » scheidhr
1998-12-04 windows installation
192 cp /project/ps/soft/win32-i486/dlls/*.dll oz3/platform/win32-i486
Something went wrong with that request. Please try again.