Add missing logic for 'prebuilt' target
[gambit-c.git] / examples / makefile.in
blobb9b6cd5e680c50e1c92084b6e501e07099cfe4c5
1 # makefile for Gambit-C examples, Time-stamp: <2011-03-15 00:44:58 feeley>
3 # Copyright (c) 1994-2011 by Marc Feeley, All Rights Reserved.
5 herefromroot = examples
6 rootfromhere = ..
7 SUBDIRS = distr-comp pi ring web-repl web-server tcltk Xlib-simple pthread misc iOS
9 PACKAGE_SHORTNAME = @PACKAGE_SHORTNAME@
10 PACKAGE_NAME = @PACKAGE_NAME@
11 PACKAGE_VERSION = @PACKAGE_VERSION@
12 PACKAGE_STRING = @PACKAGE_STRING@
13 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
14 PACKAGE_TARNAME = @PACKAGE_TARNAME@
16 @SET_MAKE@
18 srcdir = @srcdir@
19 VPATH = @srcdir@
20 srcdirpfx = @srcdirpfx@
22 C_COMPILER = @C_COMPILER_MF@
23 C_PREPROC = @C_PREPROC_MF@
24 FLAGS_OBJ = @FLAGS_OBJ_MF@
25 FLAGS_DYN = @FLAGS_DYN_MF@
26 FLAGS_LIB = @FLAGS_LIB_MF@
27 FLAGS_EXE = @FLAGS_EXE_MF@
28 DEFS = @DEFS@
29 LIBS = @LIBS@
31 GAMBCLIB_DEFS = @GAMBCLIB_DEFS_MF@
32 LIB_PREFIX = @LIB_PREFIX@
33 LIB_EXTENSION = @LIB_EXTENSION@
34 GAMBCLIB = @GAMBCLIB@
35 GAMBCGSCLIB = @GAMBCGSCLIB@
36 GAMBCGSILIB = @GAMBCGSILIB@
37 INSTALL = @INSTALL@
38 INSTALL_DATA = @INSTALL_DATA@
39 INSTALL_LIB = @INSTALL_LIB@
40 INSTALL_PROGRAM = @INSTALL_PROGRAM@
41 LN_S = @LN_S@
42 RANLIB = @RANLIB@
43 RC = @RC@
44 GIT = @GIT@
45 HG = @HG@
47 prefix = @prefix@
48 exec_prefix = @exec_prefix@
49 includedir = @includedir@
50 libdir = @libdir@
51 bindir = @bindir@
52 docdir = @docdir@
53 infodir = @infodir@
54 emacsdir = @emacsdir@
55 libexecdir = @libexecdir@
56 datarootdir = @datarootdir@
57 datadir = @datadir@
58 htmldir = @htmldir@
59 dvidir = @dvidir@
60 pdfdir = @pdfdir@
61 psdir = @psdir@
62 localedir = @localedir@
63 mandir = @mandir@
65 .SUFFIXES:
67 RCFILES = makefile.in README
69 GENDISTFILES =
71 DISTFILES = $(RCFILES) $(GENDISTFILES)
73 MDEFINES = prefix=$(prefix) exec_prefix=$(exec_prefix) \
74 includedir=$(includedir) libdir=$(libdir) \
75 bindir=$(bindir) docdir=$(docdir) \
76 infodir=$(infodir) emacsdir=$(emacsdir)
78 all:
80 all-pre:
82 all-post:
84 examples-pre:
86 examples-post:
88 install-pre:
90 install-post: all
92 uninstall-pre:
94 uninstall-post:
96 mostlyclean-pre:
98 mostlyclean-post:
100 clean-pre: mostlyclean-pre
102 clean-post: mostlyclean-post
104 distclean-pre: clean-pre
106 distclean-post: clean-post
108 bootclean-pre: distclean-pre
110 bootclean-post: distclean-post
112 realclean-pre: bootclean-pre
114 realclean-post: bootclean-post
115 rm -f makefile
117 rc-setup-pre:
118 $(RC) add $(RCFILES)
120 rc-setup-post:
122 dist-pre dist-devel-pre:
123 mkdir $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)
124 chmod 777 $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)
125 @echo " Copying distribution files:"
126 @for file in $(DISTFILES); do \
127 echo " $(herefromroot)/$$file"; \
128 ln $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot) 2> /dev/null \
129 || cp -p $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot); \
130 done
132 dist-post dist-devel-post:
134 all-recursive install-recursive uninstall-recursive mostlyclean-recursive clean-recursive distclean-recursive bootclean-recursive realclean-recursive rc-setup-recursive dist-recursive dist-devel-recursive examples-recursive:
135 @if test -n "$(SUBDIRS)"; then \
136 for subdir in ""$(SUBDIRS); do \
137 target=`echo $@ | sed 's/-recursive//'`; \
138 echo making $$target in $$subdir; \
139 (cd $$subdir && $(MAKE) $$target) || exit 1; \
140 done \
143 all: all-post
145 all-post: all-recursive
147 all-recursive: all-pre
149 install: install-post
151 install-post: install-recursive
153 install-recursive: install-pre
155 uninstall: uninstall-post
157 uninstall-post: uninstall-recursive
159 uninstall-recursive: uninstall-pre
161 mostlyclean: mostlyclean-post
163 mostlyclean-post: mostlyclean-recursive
165 mostlyclean-recursive: mostlyclean-pre
167 clean: clean-post
169 clean-post: clean-recursive
171 clean-recursive: clean-pre
173 distclean: distclean-post
175 distclean-post: distclean-recursive
177 distclean-recursive: distclean-pre
179 bootclean: bootclean-post
181 bootclean-post: bootclean-recursive
183 bootclean-recursive: bootclean-pre
185 realclean: realclean-post
187 realclean-post: realclean-recursive
189 realclean-recursive: realclean-pre
191 rc-setup: rc-setup-post
193 rc-setup-post: rc-setup-recursive
195 rc-setup-recursive: rc-setup-pre
197 dist: dist-post
199 dist-post: dist-recursive
201 dist-recursive: dist-pre
203 dist-devel: dist-devel-post
205 dist-devel-post: dist-devel-recursive
207 dist-devel-recursive: dist-devel-pre
209 examples: examples-post
211 examples-post: examples-recursive
213 examples-recursive: examples-pre
215 makefile: makefile.in $(rootfromhere)/config.status
216 cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status
218 # Tell versions [3.59,3.63) of GNU make not to export all variables.
219 # Otherwise a system limit (for SysV at least) may be exceeded.
220 .NOEXPORT: