summaryrefslogtreecommitdiff
path: root/prebuilt/makefile.in (plain)
blob: 42648674f768b75431339319ee5792481d8b56a7
1# makefile for Gambit-C builds.
2
3# Copyright (c) 1994-2009 by Marc Feeley, All Rights Reserved.
4
5herefromroot = prebuilt
6rootfromhere = ..
7SUBDIRS = macosx windows
8
9PACKAGE_SHORTNAME = @PACKAGE_SHORTNAME@
10PACKAGE_NAME = @PACKAGE_NAME@
11PACKAGE_VERSION = @PACKAGE_VERSION@
12PACKAGE_STRING = @PACKAGE_STRING@
13PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
14PACKAGE_TARNAME = @PACKAGE_TARNAME@
15
16@SET_MAKE@
17
18srcdir = @srcdir@
19VPATH = @srcdir@
20srcdirpfx = @srcdirpfx@
21
22C_COMPILER = @C_COMPILER_MF@
23C_PREPROC = @C_PREPROC_MF@
24FLAGS_OBJ = @FLAGS_OBJ_MF@
25FLAGS_DYN = @FLAGS_DYN_MF@
26FLAGS_LIB = @FLAGS_LIB_MF@
27FLAGS_EXE = @FLAGS_EXE_MF@
28DEFS = @DEFS@
29LIBS = @LIBS@
30
31GAMBCLIB_DEFS = @GAMBCLIB_DEFS_MF@
32LIB_PREFIX = @LIB_PREFIX@
33LIB_EXTENSION = @LIB_EXTENSION@
34GAMBCLIB = @GAMBCLIB@
35GAMBCGSCLIB = @GAMBCGSCLIB@
36GAMBCGSILIB = @GAMBCGSILIB@
37INSTALL = @INSTALL@
38INSTALL_DATA = @INSTALL_DATA@
39INSTALL_LIB = @INSTALL_LIB@
40INSTALL_PROGRAM = @INSTALL_PROGRAM@
41LN_S = @LN_S@
42RANLIB = @RANLIB@
43RC = @RC@
44GIT = @GIT@
45HG = @HG@
46
47prefix = @prefix@
48exec_prefix = @exec_prefix@
49includedir = @includedir@
50libdir = @libdir@
51bindir = @bindir@
52docdir = @docdir@
53infodir = @infodir@
54emacsdir = @emacsdir@
55libexecdir = @libexecdir@
56datarootdir = @datarootdir@
57datadir = @datadir@
58htmldir = @htmldir@
59dvidir = @dvidir@
60pdfdir = @pdfdir@
61psdir = @psdir@
62localedir = @localedir@
63mandir = @mandir@
64
65.SUFFIXES:
66
67RCFILES = makefile.in README
68
69GENDISTFILES =
70
71DISTFILES = $(RCFILES) $(GENDISTFILES)
72
73all:
74
75all-pre:
76
77all-post:
78
79prebuilt:
80 @for subdir in $(SUBDIRS); do \
81 echo "************ $$subdir BUILD STARTING"; \
82 rm -f remote-script remote-script.out; \
83 echo "#! /bin/sh" > remote-script; \
84 echo "cd /tmp" >> remote-script; \
85 echo "sudo rm -rf $(PACKAGE_TARNAME).tgz $(PACKAGE_TARNAME)" >> remote-script; \
86 echo "scp \$$ORIGINATOR:$(PWD)/$(rootfromhere)/$(PACKAGE_TARNAME).tgz ." >> remote-script; \
87 echo "tar zxf $(PACKAGE_TARNAME).tgz" >> remote-script; \
88 echo "cd $(PACKAGE_TARNAME)" >> remote-script; \
89 echo "sudo prebuilt/$$subdir/build" >> remote-script; \
90 echo "scp $(PACKAGE_TARNAME)* \$$ORIGINATOR:$(PWD)/$(rootfromhere)" >> remote-script; \
91 echo "sudo rm -rf $(PACKAGE_TARNAME).tgz $(PACKAGE_TARNAME)" >> remote-script; \
92 if ./$$subdir/remote-shell remote-script > remote-script.out && cat remote-script.out && fgrep "************ $$subdir BUILD SUCCESSFUL" remote-script.out > /dev/null; then \
93 rm -f remote-script remote-script.out; \
94 else \
95 echo "************ $$subdir BUILD FAILED"; \
96 rm -f remote-script remote-script.out; \
97 exit 1; \
98 fi; \
99 done
100
101install-pre:
102
103install-post: all
104
105uninstall-pre:
106
107uninstall-post:
108
109mostlyclean-pre:
110
111mostlyclean-post:
112 rm -f remote-script remote-script.out
113
114clean-pre: mostlyclean-pre
115
116clean-post: mostlyclean-post
117
118distclean-pre: clean-pre
119
120distclean-post: clean-post
121
122bootclean-pre: distclean-pre
123
124bootclean-post: distclean-post
125
126realclean-pre: bootclean-pre
127
128realclean-post: bootclean-post
129 rm -f makefile
130
131rc-setup-pre:
132 $(RC) add $(RCFILES)
133
134rc-setup-post:
135
136dist-pre dist-devel-pre:
137 mkdir $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)
138 chmod 777 $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)
139 @echo " Copying distribution files:"
140 @for file in $(DISTFILES); do \
141 echo " $(herefromroot)/$$file"; \
142 ln $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot) 2> /dev/null \
143 || cp -p $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot); \
144 done
145
146dist-post dist-devel-post:
147
148all-recursive install-recursive uninstall-recursive mostlyclean-recursive clean-recursive distclean-recursive bootclean-recursive realclean-recursive rc-setup-recursive dist-recursive dist-devel-recursive:
149 @if test -n "$(SUBDIRS)"; then \
150 for subdir in ""$(SUBDIRS); do \
151 target=`echo $@ | sed 's/-recursive//'`; \
152 echo making $$target in $$subdir; \
153 (cd $$subdir && $(MAKE) $$target) || exit 1; \
154 done \
155 fi
156
157all: all-post
158
159all-post: all-recursive
160
161all-recursive: all-pre
162
163install: install-post
164
165install-post: install-recursive
166
167install-recursive: install-pre
168
169uninstall: uninstall-post
170
171uninstall-post: uninstall-recursive
172
173uninstall-recursive: uninstall-pre
174
175mostlyclean: mostlyclean-post
176
177mostlyclean-post: mostlyclean-recursive
178
179mostlyclean-recursive: mostlyclean-pre
180
181clean: clean-post
182
183clean-post: clean-recursive
184
185clean-recursive: clean-pre
186
187distclean: distclean-post
188
189distclean-post: distclean-recursive
190
191distclean-recursive: distclean-pre
192
193bootclean: bootclean-post
194
195bootclean-post: bootclean-recursive
196
197bootclean-recursive: bootclean-pre
198
199realclean: realclean-post
200
201realclean-post: realclean-recursive
202
203realclean-recursive: realclean-pre
204
205rc-setup: rc-setup-post
206
207rc-setup-post: rc-setup-recursive
208
209rc-setup-recursive: rc-setup-pre
210
211dist: dist-post
212
213dist-post: dist-recursive
214
215dist-recursive: dist-pre
216
217dist-devel: dist-devel-post
218
219dist-devel-post: dist-devel-recursive
220
221dist-devel-recursive: dist-devel-pre
222
223makefile: makefile.in $(rootfromhere)/config.status
224 cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status
225
226# Tell versions [3.59,3.63) of GNU make not to export all variables.
227# Otherwise a system limit (for SysV at least) may be exceeded.
228.NOEXPORT:
229