1 : Makefile.SH generated from Jmake.tmpl and Jmakefile [jmake 3.0 PL44]
2 : $X-Id: Jmake.tmpl,v 3.0.1.1 1993/08/20 07:36:36 ram Exp ram $
6 if 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 elif test -f ../../../../config.sh; then TOP=../../../..;
12 echo "Can't find config.sh."; exit 1
18 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
21 DIR=`echo $CURRENT/ | sed -e 's/\.\///g'`
22 echo "Extracting ${DIR}Makefile (with variable substitutions)"
24 INSTALL=`echo $install | sed -e 's,\./i,\$(TOP)/i,'`
27 $spitshell >Makefile <<!GROK!THIS!
28 ########################################################################
29 # Makefile generated from Makefile.SH on $DATE
38 ########################################################################
39 # Parameters set by Configure -- edit config.sh if changes are needed
43 MANSRC = $installmansrc
45 MKDEP = $mkdep \$(DPFLAGS) --
48 SCRIPTDIR = $installscript
51 ########################################################################
52 # Automatically generated parameters -- do not edit
57 $spitshell >>Makefile <<'!NO!SUBS!'
58 ########################################################################
59 # Jmake rules for building libraries, programs, scripts, and data files
60 # $X-Id: Jmake.rules,v 3.0.1.1 1994/10/29 15:46:30 ram Exp ram $
62 ########################################################################
63 # Force 'make depend' to be performed first -- do not edit
69 ########################################################################
72 # $X-Id: Jmakefile,v 3.0.1.1 1994/01/24 13:42:53 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.1 1994/01/24 13:42:53 ram
84 # patch16: added dependency generation stage
86 # Revision 3.0 1993/08/18 12:04:00 ram
87 # Baseline for dist 3.0 netwide release.
90 BINPL = packinit manilist
91 BIN = manicheck $(BINPL)
98 manicheck: manicheck.SH
101 packinit: packinit.SH
104 manilist: manilist.SH
108 install:: $(SCRIPTS) $(LSCRIPTS)
109 @for file in $(SCRIPTS) $(LSCRIPTS); do \
110 case '${MFLAGS}' in *[i]*) set +e;; esac; \
111 (set -x; $(INSTALL) -c -m 555 $$file $(SCRIPTDIR)); \
115 @for file in $(SCRIPTS) $(LSCRIPTS); do \
116 case '${MFLAGS}' in *[i]*) set +e;; esac; \
117 (set -x; $(RM) $(SCRIPTDIR)/$$file); \
121 @if test "$(MANSRC)"; then \
122 case '${MFLAGS}' in *[i]*) set +e;; esac; \
123 for file in $(SCRIPTS); do \
125 $(INSTALL) -c -m 444 $$file.man $(MANSRC)/$$file.$(L)); \
130 @if test "$(MANSRC)"; then \
131 case '${MFLAGS}' in *[i]*) set +e;; esac; \
132 for file in $(SCRIPTS); do \
133 (set -x; $(RM) $(MANSRC)/$$file.$(L)); \
142 ($(SED) '/^# DO NOT DELETE/q' Makefile && \
143 grep '^\$$grep' $(BINSH) | \
144 $(SED) -e "s/^.*' \([^ ]*\) >>[ ]*\([^ ]*\)/\2: \1/" \
146 cp Makefile Makefile.bak
147 cp Makefile.new Makefile
150 ########################################################################
151 # Common rules for all Makefiles -- do not edit
156 realclean: local_realclean
157 clobber: local_clobber
162 local_realclean:: local_clean
164 local_clobber:: local_realclean
165 $(RM) Makefile config.sh
167 Makefile.SH: Jmakefile
168 -@if test -f $(TOP)/.package; then \
169 if test -f Makefile.SH; then \
170 echo " $(RM) Makefile.SH~; $(MV) Makefile.SH Makefile.SH~"; \
171 $(RM) Makefile.SH~; $(MV) Makefile.SH Makefile.SH~; \
173 echo " $(JMAKE) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT)" ; \
174 $(JMAKE) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT) ; \
175 else touch $@; exit 0; fi
177 Makefile: Makefile.SH
182 $(CTAGS) -xw *.[ch] > tags
187 ########################################################################
188 # Empty rules for directories with no sub-directories -- do not edit
191 @echo "install in $(CURRENT) done."
194 @echo "deinstall in $(CURRENT) done."
197 @echo "install.man in $(CURRENT) done."
200 @echo "deinstall.man in $(CURRENT) done."
206 ########################################################################
207 # Dependencies generated by make depend
208 # DO NOT DELETE THIS LINE -- make depend relies on it
210 # Put nothing here or make depend will gobble it up
212 @echo "You must run 'make depend' in $(TOP) first."; exit 1