Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 190 lines (147 sloc) 4.577 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:
16 # $MOZARTURL$
17 #
18 # See the file "LICENSE" or
19 # $LICENSEURL$
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_SRC= @INSTALL_SRC@
56 INSTALL_DIR= @INSTALL_DIR@
c4b0b27 global configure
mehl authored
57
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
58 TAR= tar
59 CVS= cvs
d376a05 only use PREFIX (no OZHOME)
mehl authored
60
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
61 ######################################################################
62 # other variables
63 ######################################################################
c4b0b27 global configure
mehl authored
64
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
65 OZVERSION= $(SRCTOP)/OZVERSION
dbd5bce support configure in all subdirs and bootstrapping
mehl authored
66
fc38201 use ./configure and make common linux-i486
mehl authored
67 PLATFORMS= solaris-sparc aix3-rs600 freebsd-i486 hpux-700\
68 irix5-mips linux-i486 netbsd-i486 netbsd-m68k netbsd-sparc\
69 osf1-alpha solaris-i486 sunos-sparc win32-i486
c4b0b27 global configure
mehl authored
70
71 DISTDIR= dist
72
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
73 FILES= LICENSE
d376a05 only use PREFIX (no OZHOME)
mehl authored
74 ALLFILES= $(FILES:%=$(PREFIX)/%)
c4b0b27 global configure
mehl authored
75
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
76 COMMONFILES= LICENSE \
51c7b89 updated lib->share
mehl authored
77 bin include share tools cache
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
78
79 DEMOFILES= demo
c4b0b27 global configure
mehl authored
80
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
81 COMPRESS= gzip -9
c4b0b27 global configure
mehl authored
82
5211b5d works again for windows
scheidhr authored
83 WINCACHEDIR= oz/cache/http/www.ps.uni-sb.de/ozhome
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
84
85 # sub directories for recursive makes
86 SUBDIRS= platform share contrib
1fd0f6a demo are not in common
mehl authored
87
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
88 # list of directories to create during install
89 DIRS=
90 INSTALLDIRS= $(PREFIX) $(DIRS:%=$(PREFIX)/%)
c4b0b27 global configure
mehl authored
91
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
92 ######################################################################
93 # common targets
94 ######################################################################
c4b0b27 global configure
mehl authored
95
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
96 .PHONY: all bootstrap install clean veryclean distclean check
c4b0b27 global configure
mehl authored
97
608fba9 changes to configure the whole tree
duchier authored
98 all:: bootstrap
c4b0b27 global configure
mehl authored
99
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
100 bootstrap clean veryclean depend distclean check install::
101 dirs="$(SUBDIRS)"; \
102 for i in $$dirs; do \
103 if (cd $$i && $(MAKE) $@); \
104 then true; \
105 else exit 1; \
106 fi; \
107 done
108
109 clean::
110 -rm -f *~
111
112 veryclean::
113 $(MAKE) clean SUBDIRS=
c4b0b27 global configure
mehl authored
114
608fba9 changes to configure the whole tree
duchier authored
115 distclean::
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
116 $(MAKE) veryclean SUBDIRS=
117 -rm -f Makefile config.cache config.log config.status
118
119 install:: $(INSTALLDIRS)
120
121 $(INSTALLDIRS):
122 $(INSTALL_DIR) $@
123
124 all:: Makefile
c4b0b27 global configure
mehl authored
125
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
126 Makefile: Makefile.in ./config.status
127 ./config.status
128
129 ./config.status: ./configure
130 ./config.status --recheck
131
132 ######################################################################
133 # other targets
134 ######################################################################
dbd5bce support configure in all subdirs and bootstrapping
mehl authored
135
608fba9 changes to configure the whole tree
duchier authored
136 install:: $(ALLFILES)
c4b0b27 global configure
mehl authored
137
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
138 # $(ALLFILES): $(PREFIX)/% : % $(PREFIX)
139
140 $(ALLFILES): $(FILES)
141 $(INSTALL_FILE) $(FILES) $(PREFIX)
142
143 $(DISTDIR):
144 $(INSTALL_DIR) $@
c4b0b27 global configure
mehl authored
145
fc38201 use ./configure and make common linux-i486
mehl authored
146 pack-all: common $(PLATFORMS)
c4b0b27 global configure
mehl authored
147
148 home: mini-common wish-linux src linuxz
149
150 mini-common: $(DISTDIR)
d376a05 only use PREFIX (no OZHOME)
mehl authored
151 (cd $(PREFIX)/..; \
51c7b89 updated lib->share
mehl authored
152 $(TAR) -zvcf - oz/bin oz/include oz/share) > \
fc38201 use ./configure and make common linux-i486
mehl authored
153 $(DISTDIR)/mini-`$(OZVERSION)`.tgz
c4b0b27 global configure
mehl authored
154
155 common: $(DISTDIR)
d376a05 only use PREFIX (no OZHOME)
mehl authored
156 (cd $(PREFIX)/..; \
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
157 $(TAR) -cf - $(COMMONFILES:%=oz/%)) | \
158 $(COMPRESS) > $(DISTDIR)/oz-`$(OZVERSION)`-$@.tar.gz
c4b0b27 global configure
mehl authored
159
1fd0f6a demo are not in common
mehl authored
160 demo: $(DISTDIR)
161 (cd $(PREFIX)/..; \
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
162 $(TAR) -cf - $(DEMOFILES:%=oz/%)) | \
163 $(COMPRESS) > $(DISTDIR)/oz-`$(OZVERSION)`-$@.tar.gz
1fd0f6a demo are not in common
mehl authored
164
c4b0b27 global configure
mehl authored
165 $(PLATFORMS): $(DISTDIR)
d376a05 only use PREFIX (no OZHOME)
mehl authored
166 (cd $(PREFIX)/..; \
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
167 $(TAR) -cf - oz/platform/$@) | \
168 $(COMPRESS) > $(DISTDIR)/oz-`$(OZVERSION)`-$@.tar.gz
c4b0b27 global configure
mehl authored
169
170 oz-win::
9dd84b5 adapted target oz-win
scheidhr authored
171 rm -rf oz oz3 oz-`$(OZVERSION)`
d376a05 only use PREFIX (no OZHOME)
mehl authored
172 ( cd $(PREFIX)/..; \
51c7b89 updated lib->share
mehl authored
173 $(TAR) cf - oz/?*.exe oz/demo oz/include oz/share \
5211b5d works again for windows
scheidhr authored
174 oz/tools \
ebf12ed adapted oz-win for Tcl 8.0
scheidhr authored
175 oz/LICENSE \
5211b5d works again for windows
scheidhr authored
176 oz/bin/opi \
c4b0b27 global configure
mehl authored
177 oz/platform/win32-i486/?*.exe \
178 oz/platform/win32-i486/?*.dll \
179 oz/platform/win32-i486/tcldoc \
2d6b53a first steps to cleanup Makefiles (see mozart/README.Makefiles)
mehl authored
180 ) | $(TAR) xf -
51c7b89 updated lib->share
mehl authored
181 rm -f oz/demo/rundemo oz/share/ozbatch.ozm
182 $(INSTALL_DIR) $(WINCACHEDIR)/share
5211b5d works again for windows
scheidhr authored
183 $(INSTALL_DIR) $(WINCACHEDIR)/tools
184 $(INSTALL_DIR) $(WINCACHEDIR)/bin
51c7b89 updated lib->share
mehl authored
185 mv oz/share/images oz/share/?*.ozf $(WINCACHEDIR)/share
5211b5d works again for windows
scheidhr authored
186 mv oz/tools/images oz/tools/?*.ozf $(WINCACHEDIR)/tools
187 mv oz/bin/opi $(WINCACHEDIR)/bin
51c7b89 updated lib->share
mehl authored
188 (cd oz/share/wish; rm -rf tk tcl; mv tcl8.0 tcl; mv tk8.0 tk)
c4b0b27 global configure
mehl authored
189 mv oz oz3
Something went wrong with that request. Please try again.