Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 187 lines (145 sloc) 4.556 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)
7 #
8 # Copyright:
9 #
10 # Last change:
11 # $Date$ by $Author$
12 # $Revision$
13 #
14 # This file is part of Mozart, an implementation
15 # of Oz 3:
314bd33 Enterd URLs for Mozart home and license
schulte authored
16 # http://mozart.ps.uni-sb.de
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
17 #
18 # See the file "LICENSE" or
314bd33 Enterd URLs for Mozart home and license
schulte authored
19 # http://mozart.ps.uni-sb.de/LICENSE.html
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
20 # for information on usage and redistribution
21 # of this file, and for a DISCLAIMER OF ALL
22 # WARRANTIES.
23
24 # !!! THIS MAKEFILE REQUIRES GNU MAKE !!!!
25
26 ######################################################################
27 # path
28 ######################################################################
608fba9 changes to configure the whole tree
duchier authored
29
30 BUILDTOP= @BUILDTOP@
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
31 SRCTOP= @SRCTOP@
32 SRCDIR= @srcdir@
33 VPATH= @srcdir@
34 PREFIX= @prefix@
35
36 BINDIR= $(PREFIX)/bin
51c7b89 updated lib->share
mehl authored
37 SHAREDIR= $(PREFIX)/share
38 TOOLSDIR= $(SHAREDIR)/tools
39 ELISPDIR= $(SHAREDIR)/elisp
40 IMAGESDIR= $(SHAREDIR)/images
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
41 CACHEDIR= $(PREFIX)/cache/http/www.ps.uni-sb.de/ozhome
42 CACHETOOLS= $(CACHEDIR)/tools
43 CACHEBIN= $(CACHEDIR)/bin
51c7b89 updated lib->share
mehl authored
44 SHARECACHE= $(CACHEDIR)/share
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
45 URL= http\\://www.ps.uni-sb.de/ozhome
46
47 ######################################################################
48 # programs
49 ######################################################################
c4b0b27 global configure
mehl authored
50
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
51 @SET_MAKE@
c4b0b27 global configure
mehl authored
52 INSTALL= @INSTALL@
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
53 INSTALL_BIN= $(INSTALL) -m 555
54 INSTALL_FILE= $(INSTALL) -m 444
55 INSTALL_DIR= @INSTALL_DIR@
c4b0b27 global configure
mehl authored
56
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
57 TAR= tar
58 CVS= cvs
d376a05 only use PREFIX (no OZHOME)
mehl authored
59
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
60 ######################################################################
61 # other variables
62 ######################################################################
c4b0b27 global configure
mehl authored
63
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
64 OZVERSION= $(SRCTOP)/OZVERSION
dbd5bce support configure in all subdirs and bootstrapping
mehl authored
65
fc38201 use ./configure and make common linux-i486
mehl authored
66 PLATFORMS= solaris-sparc aix3-rs600 freebsd-i486 hpux-700\
67 irix5-mips linux-i486 netbsd-i486 netbsd-m68k netbsd-sparc\
68 osf1-alpha solaris-i486 sunos-sparc win32-i486
c4b0b27 global configure
mehl authored
69
70 DISTDIR= dist
71
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
72 FILES= LICENSE
d376a05 only use PREFIX (no OZHOME)
mehl authored
73 ALLFILES= $(FILES:%=$(PREFIX)/%)
c4b0b27 global configure
mehl authored
74
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
75 COMMONFILES= LICENSE \
eed40e5 oz/tools removed; examples added
mehl authored
76 bin include share cache
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
77
eed40e5 oz/tools removed; examples added
mehl authored
78 DEMOFILES= demo examples
c4b0b27 global configure
mehl authored
79
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
80 COMPRESS= gzip -9
c4b0b27 global configure
mehl authored
81
5211b5d works again for windows
scheidhr authored
82 WINCACHEDIR= oz/cache/http/www.ps.uni-sb.de/ozhome
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
83
84 # sub directories for recursive makes
85 SUBDIRS= platform share contrib
1fd0f6a demo are not in common
mehl authored
86
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
87 # list of directories to create during install
88 DIRS=
89 INSTALLDIRS= $(PREFIX) $(DIRS:%=$(PREFIX)/%)
c4b0b27 global configure
mehl authored
90
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
91 ######################################################################
92 # common targets
93 ######################################################################
c4b0b27 global configure
mehl authored
94
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
95 .PHONY: all bootstrap install clean veryclean distclean check
c4b0b27 global configure
mehl authored
96
608fba9 changes to configure the whole tree
duchier authored
97 all:: bootstrap
c4b0b27 global configure
mehl authored
98
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
99 bootstrap clean veryclean depend distclean check install::
100 dirs="$(SUBDIRS)"; \
101 for i in $$dirs; do \
102 if (cd $$i && $(MAKE) $@); \
103 then true; \
104 else exit 1; \
105 fi; \
106 done
107
108 clean::
109 -rm -f *~
110
111 veryclean::
112 $(MAKE) clean SUBDIRS=
c4b0b27 global configure
mehl authored
113
608fba9 changes to configure the whole tree
duchier authored
114 distclean::
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
115 $(MAKE) veryclean SUBDIRS=
116 -rm -f Makefile config.cache config.log config.status
117
118 install:: $(INSTALLDIRS)
119
120 $(INSTALLDIRS):
121 $(INSTALL_DIR) $@
122
123 all:: Makefile
c4b0b27 global configure
mehl authored
124
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
125 Makefile: Makefile.in ./config.status
126 ./config.status
127
128 ./config.status: ./configure
129 ./config.status --recheck
130
131 ######################################################################
132 # other targets
133 ######################################################################
dbd5bce support configure in all subdirs and bootstrapping
mehl authored
134
608fba9 changes to configure the whole tree
duchier authored
135 install:: $(ALLFILES)
c4b0b27 global configure
mehl authored
136
6218037 install files works
mehl authored
137 $(ALLFILES): $(PREFIX)/% : % $(PREFIX)
138 $(INSTALL_FILE) $< $@
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
139
140 $(DISTDIR):
141 $(INSTALL_DIR) $@
c4b0b27 global configure
mehl authored
142
fc38201 use ./configure and make common linux-i486
mehl authored
143 pack-all: common $(PLATFORMS)
c4b0b27 global configure
mehl authored
144
145 home: mini-common wish-linux src linuxz
146
147 mini-common: $(DISTDIR)
d376a05 only use PREFIX (no OZHOME)
mehl authored
148 (cd $(PREFIX)/..; \
51c7b89 updated lib->share
mehl authored
149 $(TAR) -zvcf - oz/bin oz/include oz/share) > \
fc38201 use ./configure and make common linux-i486
mehl authored
150 $(DISTDIR)/mini-`$(OZVERSION)`.tgz
c4b0b27 global configure
mehl authored
151
152 common: $(DISTDIR)
d376a05 only use PREFIX (no OZHOME)
mehl authored
153 (cd $(PREFIX)/..; \
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
154 $(TAR) -cf - $(COMMONFILES:%=oz/%)) | \
155 $(COMPRESS) > $(DISTDIR)/oz-`$(OZVERSION)`-$@.tar.gz
c4b0b27 global configure
mehl authored
156
1fd0f6a demo are not in common
mehl authored
157 demo: $(DISTDIR)
158 (cd $(PREFIX)/..; \
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
159 $(TAR) -cf - $(DEMOFILES:%=oz/%)) | \
160 $(COMPRESS) > $(DISTDIR)/oz-`$(OZVERSION)`-$@.tar.gz
1fd0f6a demo are not in common
mehl authored
161
c4b0b27 global configure
mehl authored
162 $(PLATFORMS): $(DISTDIR)
d376a05 only use PREFIX (no OZHOME)
mehl authored
163 (cd $(PREFIX)/..; \
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
164 $(TAR) -cf - oz/platform/$@) | \
165 $(COMPRESS) > $(DISTDIR)/oz-`$(OZVERSION)`-$@.tar.gz
c4b0b27 global configure
mehl authored
166
167 oz-win::
9dd84b5 adapted target oz-win
scheidhr authored
168 rm -rf oz oz3 oz-`$(OZVERSION)`
d376a05 only use PREFIX (no OZHOME)
mehl authored
169 ( cd $(PREFIX)/..; \
51c7b89 updated lib->share
mehl authored
170 $(TAR) cf - oz/?*.exe oz/demo oz/include oz/share \
5211b5d works again for windows
scheidhr authored
171 oz/tools \
ebf12ed adapted oz-win for Tcl 8.0
scheidhr authored
172 oz/LICENSE \
5211b5d works again for windows
scheidhr authored
173 oz/bin/opi \
c4b0b27 global configure
mehl authored
174 oz/platform/win32-i486/?*.exe \
175 oz/platform/win32-i486/?*.dll \
176 oz/platform/win32-i486/tcldoc \
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
177 ) | $(TAR) xf -
51c7b89 updated lib->share
mehl authored
178 rm -f oz/demo/rundemo oz/share/ozbatch.ozm
179 $(INSTALL_DIR) $(WINCACHEDIR)/share
5211b5d works again for windows
scheidhr authored
180 $(INSTALL_DIR) $(WINCACHEDIR)/tools
181 $(INSTALL_DIR) $(WINCACHEDIR)/bin
51c7b89 updated lib->share
mehl authored
182 mv oz/share/images oz/share/?*.ozf $(WINCACHEDIR)/share
5211b5d works again for windows
scheidhr authored
183 mv oz/tools/images oz/tools/?*.ozf $(WINCACHEDIR)/tools
184 mv oz/bin/opi $(WINCACHEDIR)/bin
51c7b89 updated lib->share
mehl authored
185 (cd oz/share/wish; rm -rf tk tcl; mv tcl8.0 tcl; mv tk8.0 tk)
c4b0b27 global configure
mehl authored
186 mv oz oz3
Something went wrong with that request. Please try again.