This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
RE: [PATCH Configure] was RE: [PATCH] was RE: Perl_die() /Perl_croak()
[metaconfig.git] / dist-3.0at70 / 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=.
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 DATE=`date`
25
26 $spitshell >Makefile <<!GROK!THIS!
27 ########################################################################
28 # Makefile generated from Makefile.SH on $DATE
29
30 SHELL = /bin/sh
31 JMAKE = jmake
32 TOP = .
33 CURRENT = $CURRENT
34 DIR = $DIR
35 INSTALL = $INSTALL
36
37 ########################################################################
38 # Parameters set by Configure -- edit config.sh if changes are needed
39
40 CTAGS = ctags
41 L = $manext
42 MANSRC = $installmansrc
43 MAKE = make
44 MV = $mv
45 RM = $rm -f
46
47 ########################################################################
48 # Automatically generated parameters -- do not edit
49
50 SUBDIRS = bin mcon jmake pat kit lib
51
52 !GROK!THIS!
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 ########################################################################
58 # Start of Jmakefile
59
60 # $X-Id: Jmakefile,v 3.0.1.2 1995/07/25 13:29:41 ram Exp ram $
61 #
62 #  Copyright (c) 1991-1993, Raphael Manfredi
63 #  
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.
69 #
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
73 #
74 # Revision 3.0.1.1  1994/01/24  13:42:41  ram
75 # patch16: added dependency generation stage
76 #
77 # Revision 3.0  1993/08/18  12:03:53  ram
78 # Baseline for dist 3.0 netwide release.
79 #
80
81 all::
82
83 depend::
84         @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
85         for i in bin mcon pat jmake kit ;\
86         do \
87         (cd $$i ; echo "Depending" "in $(DIR)$$i..."; \
88         $(MAKE) $(MFLAGS)  depend); \
89         done
90
91 local_clobber::
92         $(RM) install
93
94 install.man:: dist.man
95         $(INSTALL) -c -m 444 dist.man $(MANSRC)/dist.$(L)
96
97 deinstall.man::
98         $(RM) $(MANSRC)/dist.$(L)
99
100 ########################################################################
101 # Common rules for all Makefiles -- do not edit
102
103 emptyrule::
104
105 clean: sub_clean local_clean
106 realclean: sub_realclean local_realclean
107 clobber: sub_clobber local_clobber
108
109 local_clean::
110         $(RM) core *~ *.o
111
112 local_realclean:: local_clean
113         $(RM) -r UU
114
115 local_clobber:: local_realclean
116         $(RM) config.sh config.h
117         $(RM) -r .config
118         $(RM) Makefile
119
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~; \
125         fi; \
126         echo "  $(JMAKE) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT)" ; \
127         $(JMAKE) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT) ; \
128         else touch $@; exit 0; fi
129
130 Makefile: Makefile.SH
131         /bin/sh Makefile.SH
132
133 tags::
134         $(CTAGS) -w *.[ch]
135         $(CTAGS) -xw *.[ch] > tags
136
137 local_clobber::
138         $(RM) tags
139
140 ########################################################################
141 # Rules for building in sub-directories -- do not edit
142
143 subdirs:
144         @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
145         for i in $(SUBDIRS) ;\
146         do \
147         (cd $$i ; echo $(VERB) "in $(DIR)$$i..."; \
148         $(MAKE) $(MFLAGS) $(FLAGS) $(TARGET)); \
149         done
150
151 install::
152         @$(MAKE) subdirs TARGET=install VERB="Installing" FLAGS=
153
154 deinstall::
155         @$(MAKE) subdirs TARGET=deinstall VERB="Deinstalling" FLAGS=
156
157 install.man::
158         @$(MAKE) subdirs TARGET=install.man VERB="Installing man pages" FLAGS=
159
160 deinstall.man::
161         @$(MAKE) subdirs TARGET=deinstall.man VERB="Deinstalling man pages" FLAGS=
162
163 sub_clean::
164         @$(MAKE) subdirs TARGET=clean VERB="Cleaning" FLAGS=
165         @echo "Back to $(CURRENT) for "clean...
166
167 sub_realclean::
168         @$(MAKE) subdirs TARGET=realclean VERB="Real cleaning" FLAGS=
169         @echo "Back to $(CURRENT) for "realclean...
170
171 sub_clobber::
172         @$(MAKE) subdirs TARGET=clobber VERB="Clobbering" FLAGS=
173         @echo "Back to $(CURRENT) for "clobber...
174
175 tag::
176         @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
177         for i in $(SUBDIRS) ;\
178         do \
179         (cd $$i ; echo "Tagging" "in $(DIR)$$i..."; \
180         $(MAKE) $(MFLAGS)  tag); \
181         done
182
183 Makefiles::
184         @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
185         for i in $(SUBDIRS);\
186         do \
187         echo "Making "Makefiles" in $(DIR)$$i..."; \
188         (cd $$i || exit 1; \
189         if test ! -f Makefile; then /bin/sh Makefile.SH; fi; \
190         $(MAKE) $(MFLAGS) Makefiles) \
191         done
192
193 Makefiles.SH:: Makefile.SH
194         @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
195         for i in $(SUBDIRS);\
196         do \
197         case "$(DIR)$$i/" in \
198         */*/*/*/) newtop=../../../..;; \
199         */*/*/) newtop=../../..;; \
200         */*/) newtop=../..;; \
201         */) newtop=..;; \
202         esac; \
203         case "$(TOP)" in \
204         /*) newtop="$(TOP)" ;; \
205         esac; \
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) \
210         done
211
212 all::
213         @$(MAKE) subdirs TARGET=all VERB="Making all" FLAGS=
214
215 !NO!SUBS!
216 chmod 644 Makefile
217 $eunicefix Makefile
218