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,'`
26 $spitshell >Makefile <<!GROK!THIS!
27 ########################################################################
28 # Makefile generated from Makefile.SH on $DATE
37 ########################################################################
38 # Parameters set by Configure -- edit config.sh if changes are needed
42 MANSRC = $installmansrc
47 ########################################################################
48 # Automatically generated parameters -- do not edit
50 SUBDIRS = bin mcon jmake pat kit lib
53 $spitshell >>Makefile <<'!NO!SUBS!'
54 ########################################################################
55 # Jmake rules for building libraries, programs, scripts, and data files
56 # $X-Id: Jmake.rules,v 3.0.1.3 1995/03/21 08:35:28 ram Exp ram $
57 ########################################################################
60 # $X-Id: Jmakefile,v 3.0.1.2 1995/07/25 13:29:41 ram Exp ram $
62 # Copyright (c) 1991-1993, Raphael Manfredi
64 # You may redistribute only under the terms of the Artistic Licence,
65 # as specified in the README file that comes with the distribution.
66 # You may reuse parts of this distribution only within the terms of
67 # that same Artistic Licence; a copy of which may be found at the root
68 # of the source tree for dist 3.0.
70 # $X-Log: Jmakefile,v $
71 # Revision 3.0.1.2 1995/07/25 13:29:41 ram
72 # patch56: re-ordered macros, moving the install at the end
74 # Revision 3.0.1.1 1994/01/24 13:42:41 ram
75 # patch16: added dependency generation stage
77 # Revision 3.0 1993/08/18 12:03:53 ram
78 # Baseline for dist 3.0 netwide release.
84 @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
85 for i in bin mcon pat jmake kit ;\
87 (cd $$i ; echo "Depending" "in $(DIR)$$i..."; \
88 $(MAKE) $(MFLAGS) depend); \
94 install.man:: dist.man
95 $(INSTALL) -c -m 444 dist.man $(MANSRC)/dist.$(L)
98 $(RM) $(MANSRC)/dist.$(L)
100 ########################################################################
101 # Common rules for all Makefiles -- do not edit
105 clean: sub_clean local_clean
106 realclean: sub_realclean local_realclean
107 clobber: sub_clobber local_clobber
112 local_realclean:: local_clean
115 local_clobber:: local_realclean
116 $(RM) config.sh config.h
120 Makefile.SH: Jmakefile
121 -@if test -f $(TOP)/.package; then \
122 if test -f Makefile.SH; then \
123 echo " $(RM) Makefile.SH~; $(MV) Makefile.SH Makefile.SH~"; \
124 $(RM) Makefile.SH~; $(MV) Makefile.SH Makefile.SH~; \
126 echo " $(JMAKE) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT)" ; \
127 $(JMAKE) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT) ; \
128 else touch $@; exit 0; fi
130 Makefile: Makefile.SH
135 $(CTAGS) -xw *.[ch] > tags
140 ########################################################################
141 # Rules for building in sub-directories -- do not edit
144 @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
145 for i in $(SUBDIRS) ;\
147 (cd $$i ; echo $(VERB) "in $(DIR)$$i..."; \
148 $(MAKE) $(MFLAGS) $(FLAGS) $(TARGET)); \
152 @$(MAKE) subdirs TARGET=install VERB="Installing" FLAGS=
155 @$(MAKE) subdirs TARGET=deinstall VERB="Deinstalling" FLAGS=
158 @$(MAKE) subdirs TARGET=install.man VERB="Installing man pages" FLAGS=
161 @$(MAKE) subdirs TARGET=deinstall.man VERB="Deinstalling man pages" FLAGS=
164 @$(MAKE) subdirs TARGET=clean VERB="Cleaning" FLAGS=
165 @echo "Back to $(CURRENT) for "clean...
168 @$(MAKE) subdirs TARGET=realclean VERB="Real cleaning" FLAGS=
169 @echo "Back to $(CURRENT) for "realclean...
172 @$(MAKE) subdirs TARGET=clobber VERB="Clobbering" FLAGS=
173 @echo "Back to $(CURRENT) for "clobber...
176 @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
177 for i in $(SUBDIRS) ;\
179 (cd $$i ; echo "Tagging" "in $(DIR)$$i..."; \
180 $(MAKE) $(MFLAGS) tag); \
184 @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
185 for i in $(SUBDIRS);\
187 echo "Making "Makefiles" in $(DIR)$$i..."; \
189 if test ! -f Makefile; then /bin/sh Makefile.SH; fi; \
190 $(MAKE) $(MFLAGS) Makefiles) \
193 Makefiles.SH:: Makefile.SH
194 @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
195 for i in $(SUBDIRS);\
197 case "$(DIR)$$i/" in \
198 */*/*/*/) newtop=../../../..;; \
199 */*/*/) newtop=../../..;; \
200 */*/) newtop=../..;; \
204 /*) newtop="$(TOP)" ;; \
206 echo "Making Makefiles.SH in $(DIR)$$i..."; \
207 (cd $$i || exit 1; $(MAKE) $(MFLAGS) -f ../Makefile \
208 Makefile TOP=$$newtop CURRENT=$(DIR)$$i;\
209 $(MAKE) $(MFLAGS) Makefiles.SH) \
213 @$(MAKE) subdirs TARGET=all VERB="Making all" FLAGS=