This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Populate metaconfig branch.
[metaconfig.git] / dist-3.0at70b / mcon / Makefile.SH
1 : Makefile.SH generated from Jmake.tmpl and Jmakefile [jmake 3.0 PL55]
2 : $X-Id: Jmake.tmpl,v 3.0.1.2 1995/01/11 14:50:21 ram Exp ram $
3 case $CONFIG in
4 '')
5         if test -f config.sh; then TOP=.;
6         elif test -f ../config.sh; then TOP=..;
7         elif test -f ../../config.sh; then TOP=../..;
8         elif test -f ../../../config.sh; then TOP=../../..;
9         elif test -f ../../../../config.sh; then TOP=../../../..;
10         else
11                 echo "Can't find config.sh."; exit 1
12         fi
13         . $TOP/config.sh
14         ;;
15 esac
16 case "$0" in
17 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
18 esac
19 CURRENT=mcon
20 DIR=`echo $CURRENT/ | sed -e 's/\.\///g'`
21 echo "Extracting ${DIR}Makefile (with variable substitutions)"
22
23 INSTALL=`echo $install | sed -e 's,\./i,\$(TOP)/i,'`
24 INSTALLDIR=`echo $installdir | sed -e 's,\./i,\$(TOP)/i,'`
25 DATE=`date`
26
27 $spitshell >Makefile <<!GROK!THIS!
28 ########################################################################
29 # Makefile generated from Makefile.SH on $DATE
30
31 SHELL = /bin/sh
32 JMAKE = jmake
33 TOP = ..
34 CURRENT = $CURRENT
35 DIR = $DIR
36 INSTALL = $INSTALL
37 INSTALLDIR = $INSTALLDIR
38
39 ########################################################################
40 # Parameters set by Configure -- edit config.sh if changes are needed
41
42 CTAGS = ctags
43 MAKE = make
44 MKDEP = $mkdep \$(DPFLAGS) --
45 MV = $mv
46 PRIVLIB = $installprivlib
47 RM = $rm -f
48 SCRIPTDIR = $installscript
49 SED = $sed
50
51 ########################################################################
52 # Automatically generated parameters -- do not edit
53
54 SUBDIRS = man
55 BIN =  metaconfig metalint metaxref
56
57 !GROK!THIS!
58 $spitshell >>Makefile <<'!NO!SUBS!'
59 ########################################################################
60 # Jmake rules for building libraries, programs, scripts, and data files
61 # $X-Id: Jmake.rules,v 3.0.1.3 1995/03/21 08:35:28 ram Exp ram $
62 ########################################################################
63 # Force 'make depend' to be performed first -- do not edit
64
65 .FORCE_DEPEND::
66
67 all:: .FORCE_DEPEND
68
69 ########################################################################
70 # Start of Jmakefile
71
72 # $X-Id: Jmakefile,v 3.0.1.4 1995/07/25 13:23:09 ram Exp ram $
73 #
74 #  Copyright (c) 1991-1993, Raphael Manfredi
75 #  
76 #  You may redistribute only under the terms of the Artistic Licence,
77 #  as specified in the README file that comes with the distribution.
78 #  You may reuse parts of this distribution only within the terms of
79 #  that same Artistic Licence; a copy of which may be found at the root
80 #  of the source tree for dist 3.0.
81 #
82 # $X-Log: Jmakefile,v $
83 # Revision 3.0.1.4  1995/07/25  13:23:09  ram
84 # patch56: installs the GNU configure-like front-end to Configure
85 #
86 # Revision 3.0.1.3  1994/01/24  13:42:29  ram
87 # patch16: added dependency generation stage
88 #
89 # Revision 3.0.1.2  1993/11/02  10:40:01  ram
90 # patch14: now invokes perload explicitely via perl executable
91 #
92 # Revision 3.0.1.1  1993/08/25  08:46:44  ram
93 # patch6: split unit installation to avoid shell command line overflow
94 #
95 # Revision 3.0  1993/08/18  12:04:40  ram
96 # Baseline for dist 3.0 netwide release.
97 #
98
99 all:: Glossary
100
101 local_realclean::
102         $(RM) Glossary
103
104 Glossary: makegloss
105         chmod +x makegloss
106         ./makegloss
107
108 all:: makegloss
109
110 local_realclean::
111         $(RM) makegloss
112
113 makegloss: makegloss.SH
114         /bin/sh makegloss.SH
115
116
117 install::
118         @for dir in $(PRIVLIB) $(PRIVLIB)/U; do \
119         case '${MFLAGS}' in *[i]*) set +e;; esac; \
120         (set -x; test -d $$dir || $(INSTALLDIR) $$dir); \
121         done
122
123 deinstall::
124         $(RM) -r $(PRIVLIB) $(PRIVLIB)/U
125
126 install:: Glossary
127         $(INSTALL) -c -m 444 Glossary $(PRIVLIB)
128
129 deinstall::
130         $(RM) $(PRIVLIB)/Glossary
131
132 install:: makegloss
133         $(INSTALL) -c -m 555  makegloss $(PRIVLIB)
134
135 deinstall::
136         $(RM) $(PRIVLIB)/makegloss
137
138 install:: configure
139         $(INSTALL) -c -m 555  configure $(PRIVLIB)
140
141 deinstall::
142         $(RM) $(PRIVLIB)/configure
143
144 install:: U/[a-d]*.U
145         @case '${MFLAGS}' in *[i]*) set +e;; esac; \
146         for i in U/[a-d]*.U; do \
147         (set -x; $(INSTALL) -c -m 444 $$i $(PRIVLIB)/U); \
148         done
149
150 deinstall::
151         @case '${MFLAGS}' in *[i]*) set +e;; esac; \
152         for i in U/[a-d]*.U; do \
153         (set -x; $(RM) $(PRIVLIB)/U/$$i); \
154         done
155
156 install:: U/[A-Ze-z]*.U
157         @case '${MFLAGS}' in *[i]*) set +e;; esac; \
158         for i in U/[A-Ze-z]*.U; do \
159         (set -x; $(INSTALL) -c -m 444 $$i $(PRIVLIB)/U); \
160         done
161
162 deinstall::
163         @case '${MFLAGS}' in *[i]*) set +e;; esac; \
164         for i in U/[A-Ze-z]*.U; do \
165         (set -x; $(RM) $(PRIVLIB)/U/$$i); \
166         done
167
168 all:: metaconfig mconfig
169
170 local_realclean::
171         $(RM) metaconfig mconfig
172
173 all:: mconfig
174
175 local_realclean::
176         $(RM) mconfig
177
178 mconfig: mconfig.SH
179         /bin/sh mconfig.SH
180
181 metaconfig: mconfig
182         perl $(TOP)/bin/perload -o mconfig > $@
183         chmod +rx $@
184
185 install:: metaconfig
186         $(INSTALL) -c -m 555  metaconfig $(SCRIPTDIR)
187
188 deinstall::
189         $(RM) $(SCRIPTDIR)/metaconfig
190
191 all:: metalint mlint
192
193 local_realclean::
194         $(RM) metalint mlint
195
196 all:: mlint
197
198 local_realclean::
199         $(RM) mlint
200
201 mlint: mlint.SH
202         /bin/sh mlint.SH
203
204 metalint: mlint
205         perl $(TOP)/bin/perload -o mlint > $@
206         chmod +rx $@
207
208 install:: metalint
209         $(INSTALL) -c -m 555  metalint $(SCRIPTDIR)
210
211 deinstall::
212         $(RM) $(SCRIPTDIR)/metalint
213
214 all:: metaxref mxref
215
216 local_realclean::
217         $(RM) metaxref mxref
218
219 all:: mxref
220
221 local_realclean::
222         $(RM) mxref
223
224 mxref: mxref.SH
225         /bin/sh mxref.SH
226
227 metaxref: mxref
228         perl $(TOP)/bin/perload -o mxref > $@
229         chmod +rx $@
230
231 install:: metaxref
232         $(INSTALL) -c -m 555  metaxref $(SCRIPTDIR)
233
234 deinstall::
235         $(RM) $(SCRIPTDIR)/metaxref
236
237 BINFILES = \
238         mconfig \
239         mlint \
240         mxref 
241
242 BINSH = \
243         mconfig.SH \
244         mlint.SH \
245         mxref.SH 
246
247 depend::
248         ($(SED) '/^# DO NOT DELETE/q' Makefile && \
249         grep '^\$$grep' $(BINSH) | \
250         $(SED) -e "s/^.*' \([^ ]*\) >>\([^ ]*\)/\2: \1/" \
251         ) > Makefile.new
252         cp Makefile Makefile.bak
253         cp Makefile.new Makefile
254         $(RM) Makefile.new
255
256 ########################################################################
257 # Common rules for all Makefiles -- do not edit
258
259 emptyrule::
260
261 clean: sub_clean local_clean
262 realclean: sub_realclean local_realclean
263 clobber: sub_clobber local_clobber
264
265 local_clean::
266         $(RM) core *~ *.o
267
268 local_realclean:: local_clean
269
270 local_clobber:: local_realclean
271         $(RM) Makefile config.sh
272
273 Makefile.SH: Jmakefile
274         -@if test -f $(TOP)/.package; then \
275         if test -f Makefile.SH; then \
276         echo "  $(RM) Makefile.SH~; $(MV) Makefile.SH Makefile.SH~"; \
277         $(RM) Makefile.SH~; $(MV) Makefile.SH Makefile.SH~; \
278         fi; \
279         echo "  $(JMAKE) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT)" ; \
280         $(JMAKE) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT) ; \
281         else touch $@; exit 0; fi
282
283 Makefile: Makefile.SH
284         /bin/sh Makefile.SH
285
286 tags::
287         $(CTAGS) -w *.[ch]
288         $(CTAGS) -xw *.[ch] > tags
289
290 local_clobber::
291         $(RM) tags
292
293 ########################################################################
294 # Rules for building in sub-directories -- do not edit
295
296 subdirs:
297         @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
298         for i in $(SUBDIRS) ;\
299         do \
300         (cd $$i ; echo $(VERB) "in $(DIR)$$i..."; \
301         $(MAKE) $(MFLAGS) $(FLAGS) $(TARGET)); \
302         done
303
304 install::
305         @$(MAKE) subdirs TARGET=install VERB="Installing" FLAGS=
306
307 deinstall::
308         @$(MAKE) subdirs TARGET=deinstall VERB="Deinstalling" FLAGS=
309
310 install.man::
311         @$(MAKE) subdirs TARGET=install.man VERB="Installing man pages" FLAGS=
312
313 deinstall.man::
314         @$(MAKE) subdirs TARGET=deinstall.man VERB="Deinstalling man pages" FLAGS=
315
316 sub_clean::
317         @$(MAKE) subdirs TARGET=clean VERB="Cleaning" FLAGS=
318         @echo "Back to $(CURRENT) for "clean...
319
320 sub_realclean::
321         @$(MAKE) subdirs TARGET=realclean VERB="Real cleaning" FLAGS=
322         @echo "Back to $(CURRENT) for "realclean...
323
324 sub_clobber::
325         @$(MAKE) subdirs TARGET=clobber VERB="Clobbering" FLAGS=
326         @echo "Back to $(CURRENT) for "clobber...
327
328 tag::
329         @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
330         for i in $(SUBDIRS) ;\
331         do \
332         (cd $$i ; echo "Tagging" "in $(DIR)$$i..."; \
333         $(MAKE) $(MFLAGS)  tag); \
334         done
335
336 Makefiles::
337         @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
338         for i in $(SUBDIRS);\
339         do \
340         echo "Making "Makefiles" in $(DIR)$$i..."; \
341         (cd $$i || exit 1; \
342         if test ! -f Makefile; then /bin/sh Makefile.SH; fi; \
343         $(MAKE) $(MFLAGS) Makefiles) \
344         done
345
346 Makefiles.SH:: Makefile.SH
347         @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
348         for i in $(SUBDIRS);\
349         do \
350         case "$(DIR)$$i/" in \
351         */*/*/*/) newtop=../../../..;; \
352         */*/*/) newtop=../../..;; \
353         */*/) newtop=../..;; \
354         */) newtop=..;; \
355         esac; \
356         case "$(TOP)" in \
357         /*) newtop="$(TOP)" ;; \
358         esac; \
359         echo "Making Makefiles.SH in $(DIR)$$i..."; \
360         (cd $$i || exit 1; $(MAKE) $(MFLAGS) -f ../Makefile \
361         Makefile TOP=$$newtop CURRENT=$(DIR)$$i;\
362         $(MAKE) $(MFLAGS) Makefiles.SH) \
363         done
364
365 all::
366         @$(MAKE) subdirs TARGET=all VERB="Making all" FLAGS=
367
368 ########################################################################
369 # Dependencies generated by make depend
370 # DO NOT DELETE THIS LINE -- make depend relies on it
371
372 # Put nothing here or make depend will gobble it up
373 .FORCE_DEPEND::
374         @echo "You must run 'make depend' in $(TOP) first."; exit 1
375 !NO!SUBS!
376 chmod 644 Makefile
377 $eunicefix Makefile
378