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 $
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=../../../..;
11 echo "Can't find config.sh."; exit 1
17 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
20 DIR=`echo $CURRENT/ | sed -e 's/\.\///g'`
21 echo "Extracting ${DIR}Makefile (with variable substitutions)"
23 INSTALL=`echo $install | sed -e 's,\./i,\$(TOP)/i,'`
24 INSTALLDIR=`echo $installdir | sed -e 's,\./i,\$(TOP)/i,'`
27 $spitshell >Makefile <<!GROK!THIS!
28 ########################################################################
29 # Makefile generated from Makefile.SH on $DATE
37 INSTALLDIR = $INSTALLDIR
39 ########################################################################
40 # Parameters set by Configure -- edit config.sh if changes are needed
44 MKDEP = $mkdep \$(DPFLAGS) --
46 PRIVLIB = $installprivlib
48 SCRIPTDIR = $installscript
51 ########################################################################
52 # Automatically generated parameters -- do not edit
55 BIN = metaconfig metalint metaxref
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
69 ########################################################################
72 # $X-Id: Jmakefile,v 3.0.1.4 1995/07/25 13:23:09 ram Exp ram $
74 # Copyright (c) 1991-1993, Raphael Manfredi
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.
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
86 # Revision 3.0.1.3 1994/01/24 13:42:29 ram
87 # patch16: added dependency generation stage
89 # Revision 3.0.1.2 1993/11/02 10:40:01 ram
90 # patch14: now invokes perload explicitely via perl executable
92 # Revision 3.0.1.1 1993/08/25 08:46:44 ram
93 # patch6: split unit installation to avoid shell command line overflow
95 # Revision 3.0 1993/08/18 12:04:40 ram
96 # Baseline for dist 3.0 netwide release.
113 makegloss: makegloss.SH
118 @for dir in $(PRIVLIB) $(PRIVLIB)/U; do \
119 case '${MFLAGS}' in *[i]*) set +e;; esac; \
120 (set -x; test -d $$dir || $(INSTALLDIR) $$dir); \
124 $(RM) -r $(PRIVLIB) $(PRIVLIB)/U
127 $(INSTALL) -c -m 444 Glossary $(PRIVLIB)
130 $(RM) $(PRIVLIB)/Glossary
133 $(INSTALL) -c -m 555 makegloss $(PRIVLIB)
136 $(RM) $(PRIVLIB)/makegloss
139 $(INSTALL) -c -m 555 configure $(PRIVLIB)
142 $(RM) $(PRIVLIB)/configure
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); \
151 @case '${MFLAGS}' in *[i]*) set +e;; esac; \
152 for i in U/[a-d]*.U; do \
153 (set -x; $(RM) $(PRIVLIB)/U/$$i); \
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); \
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); \
168 all:: metaconfig mconfig
171 $(RM) metaconfig mconfig
182 perl $(TOP)/bin/perload -o mconfig > $@
186 $(INSTALL) -c -m 555 metaconfig $(SCRIPTDIR)
189 $(RM) $(SCRIPTDIR)/metaconfig
205 perl $(TOP)/bin/perload -o mlint > $@
209 $(INSTALL) -c -m 555 metalint $(SCRIPTDIR)
212 $(RM) $(SCRIPTDIR)/metalint
228 perl $(TOP)/bin/perload -o mxref > $@
232 $(INSTALL) -c -m 555 metaxref $(SCRIPTDIR)
235 $(RM) $(SCRIPTDIR)/metaxref
248 ($(SED) '/^# DO NOT DELETE/q' Makefile && \
249 grep '^\$$grep' $(BINSH) | \
250 $(SED) -e "s/^.*' \([^ ]*\) >>\([^ ]*\)/\2: \1/" \
252 cp Makefile Makefile.bak
253 cp Makefile.new Makefile
256 ########################################################################
257 # Common rules for all Makefiles -- do not edit
261 clean: sub_clean local_clean
262 realclean: sub_realclean local_realclean
263 clobber: sub_clobber local_clobber
268 local_realclean:: local_clean
270 local_clobber:: local_realclean
271 $(RM) Makefile config.sh
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~; \
279 echo " $(JMAKE) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT)" ; \
280 $(JMAKE) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT) ; \
281 else touch $@; exit 0; fi
283 Makefile: Makefile.SH
288 $(CTAGS) -xw *.[ch] > tags
293 ########################################################################
294 # Rules for building in sub-directories -- do not edit
297 @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
298 for i in $(SUBDIRS) ;\
300 (cd $$i ; echo $(VERB) "in $(DIR)$$i..."; \
301 $(MAKE) $(MFLAGS) $(FLAGS) $(TARGET)); \
305 @$(MAKE) subdirs TARGET=install VERB="Installing" FLAGS=
308 @$(MAKE) subdirs TARGET=deinstall VERB="Deinstalling" FLAGS=
311 @$(MAKE) subdirs TARGET=install.man VERB="Installing man pages" FLAGS=
314 @$(MAKE) subdirs TARGET=deinstall.man VERB="Deinstalling man pages" FLAGS=
317 @$(MAKE) subdirs TARGET=clean VERB="Cleaning" FLAGS=
318 @echo "Back to $(CURRENT) for "clean...
321 @$(MAKE) subdirs TARGET=realclean VERB="Real cleaning" FLAGS=
322 @echo "Back to $(CURRENT) for "realclean...
325 @$(MAKE) subdirs TARGET=clobber VERB="Clobbering" FLAGS=
326 @echo "Back to $(CURRENT) for "clobber...
329 @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
330 for i in $(SUBDIRS) ;\
332 (cd $$i ; echo "Tagging" "in $(DIR)$$i..."; \
333 $(MAKE) $(MFLAGS) tag); \
337 @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
338 for i in $(SUBDIRS);\
340 echo "Making "Makefiles" in $(DIR)$$i..."; \
342 if test ! -f Makefile; then /bin/sh Makefile.SH; fi; \
343 $(MAKE) $(MFLAGS) Makefiles) \
346 Makefiles.SH:: Makefile.SH
347 @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
348 for i in $(SUBDIRS);\
350 case "$(DIR)$$i/" in \
351 */*/*/*/) newtop=../../../..;; \
352 */*/*/) newtop=../../..;; \
353 */*/) newtop=../..;; \
357 /*) newtop="$(TOP)" ;; \
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) \
366 @$(MAKE) subdirs TARGET=all VERB="Making all" FLAGS=
368 ########################################################################
369 # Dependencies generated by make depend
370 # DO NOT DELETE THIS LINE -- make depend relies on it
372 # Put nothing here or make depend will gobble it up
374 @echo "You must run 'make depend' in $(TOP) first."; exit 1