Commit | Line | Data |
---|---|---|
959f3c4c JH |
1 | ######################################################################## |
2 | # Makefile generated from Makefile.SH on ma 24 elo 06.59.43 1998 | |
3 | ||
4 | SHELL = /bin/sh | |
5 | JMAKE = jmake | |
6 | TOP = . | |
7 | CURRENT = . | |
8 | DIR = | |
9 | INSTALL = /p/bin/ginstall | |
10 | ||
11 | ######################################################################## | |
12 | # Parameters set by Configure -- edit config.sh if changes are needed | |
13 | ||
14 | CTAGS = ctags | |
15 | L = 1 | |
16 | MANSRC = /u/vieraat/vieraat/jhi/Perl/man/man1 | |
17 | MAKE = make | |
18 | MV = /usr/bin/mv | |
19 | RM = /usr/bin/rm -f | |
20 | ||
21 | ######################################################################## | |
22 | # Automatically generated parameters -- do not edit | |
23 | ||
24 | SUBDIRS = bin mcon jmake pat kit lib | |
25 | ||
26 | ######################################################################## | |
27 | # Jmake rules for building libraries, programs, scripts, and data files | |
28 | # $X-Id: Jmake.rules,v 3.0.1.3 1995/03/21 08:35:28 ram Exp ram $ | |
29 | ######################################################################## | |
30 | # Start of Jmakefile | |
31 | ||
32 | # $X-Id: Jmakefile,v 3.0.1.2 1995/07/25 13:29:41 ram Exp ram $ | |
33 | # | |
34 | # Copyright (c) 1991-1993, Raphael Manfredi | |
35 | # | |
36 | # You may redistribute only under the terms of the Artistic Licence, | |
37 | # as specified in the README file that comes with the distribution. | |
38 | # You may reuse parts of this distribution only within the terms of | |
39 | # that same Artistic Licence; a copy of which may be found at the root | |
40 | # of the source tree for dist 3.0. | |
41 | # | |
42 | # $X-Log: Jmakefile,v $ | |
43 | # Revision 3.0.1.2 1995/07/25 13:29:41 ram | |
44 | # patch56: re-ordered macros, moving the install at the end | |
45 | # | |
46 | # Revision 3.0.1.1 1994/01/24 13:42:41 ram | |
47 | # patch16: added dependency generation stage | |
48 | # | |
49 | # Revision 3.0 1993/08/18 12:03:53 ram | |
50 | # Baseline for dist 3.0 netwide release. | |
51 | # | |
52 | ||
53 | all:: | |
54 | ||
55 | depend:: | |
56 | @case '${MFLAGS}' in *[ik]*) set +e;; esac; \ | |
57 | for i in bin mcon pat jmake kit ;\ | |
58 | do \ | |
59 | (cd $$i ; echo "Depending" "in $(DIR)$$i..."; \ | |
60 | $(MAKE) $(MFLAGS) depend); \ | |
61 | done | |
62 | ||
63 | local_clobber:: | |
64 | $(RM) install | |
65 | ||
66 | install.man:: dist.man | |
67 | $(INSTALL) -c -m 444 dist.man $(MANSRC)/dist.$(L) | |
68 | ||
69 | deinstall.man:: | |
70 | $(RM) $(MANSRC)/dist.$(L) | |
71 | ||
72 | ######################################################################## | |
73 | # Common rules for all Makefiles -- do not edit | |
74 | ||
75 | emptyrule:: | |
76 | ||
77 | clean: sub_clean local_clean | |
78 | realclean: sub_realclean local_realclean | |
79 | clobber: sub_clobber local_clobber | |
80 | ||
81 | local_clean:: | |
82 | $(RM) core *~ *.o | |
83 | ||
84 | local_realclean:: local_clean | |
85 | $(RM) -r UU | |
86 | ||
87 | local_clobber:: local_realclean | |
88 | $(RM) config.sh config.h | |
89 | $(RM) -r .config | |
90 | $(RM) Makefile | |
91 | ||
92 | Makefile.SH: Jmakefile | |
93 | -@if test -f $(TOP)/.package; then \ | |
94 | if test -f Makefile.SH; then \ | |
95 | echo " $(RM) Makefile.SH~; $(MV) Makefile.SH Makefile.SH~"; \ | |
96 | $(RM) Makefile.SH~; $(MV) Makefile.SH Makefile.SH~; \ | |
97 | fi; \ | |
98 | echo " $(JMAKE) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT)" ; \ | |
99 | $(JMAKE) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT) ; \ | |
100 | else touch $@; exit 0; fi | |
101 | ||
102 | Makefile: Makefile.SH | |
103 | /bin/sh Makefile.SH | |
104 | ||
105 | tags:: | |
106 | $(CTAGS) -w *.[ch] | |
107 | $(CTAGS) -xw *.[ch] > tags | |
108 | ||
109 | local_clobber:: | |
110 | $(RM) tags | |
111 | ||
112 | ######################################################################## | |
113 | # Rules for building in sub-directories -- do not edit | |
114 | ||
115 | subdirs: | |
116 | @case '${MFLAGS}' in *[ik]*) set +e;; esac; \ | |
117 | for i in $(SUBDIRS) ;\ | |
118 | do \ | |
119 | (cd $$i ; echo $(VERB) "in $(DIR)$$i..."; \ | |
120 | $(MAKE) $(MFLAGS) $(FLAGS) $(TARGET)); \ | |
121 | done | |
122 | ||
123 | install:: | |
124 | @$(MAKE) subdirs TARGET=install VERB="Installing" FLAGS= | |
125 | ||
126 | deinstall:: | |
127 | @$(MAKE) subdirs TARGET=deinstall VERB="Deinstalling" FLAGS= | |
128 | ||
129 | install.man:: | |
130 | @$(MAKE) subdirs TARGET=install.man VERB="Installing man pages" FLAGS= | |
131 | ||
132 | deinstall.man:: | |
133 | @$(MAKE) subdirs TARGET=deinstall.man VERB="Deinstalling man pages" FLAGS= | |
134 | ||
135 | sub_clean:: | |
136 | @$(MAKE) subdirs TARGET=clean VERB="Cleaning" FLAGS= | |
137 | @echo "Back to $(CURRENT) for "clean... | |
138 | ||
139 | sub_realclean:: | |
140 | @$(MAKE) subdirs TARGET=realclean VERB="Real cleaning" FLAGS= | |
141 | @echo "Back to $(CURRENT) for "realclean... | |
142 | ||
143 | sub_clobber:: | |
144 | @$(MAKE) subdirs TARGET=clobber VERB="Clobbering" FLAGS= | |
145 | @echo "Back to $(CURRENT) for "clobber... | |
146 | ||
147 | tag:: | |
148 | @case '${MFLAGS}' in *[ik]*) set +e;; esac; \ | |
149 | for i in $(SUBDIRS) ;\ | |
150 | do \ | |
151 | (cd $$i ; echo "Tagging" "in $(DIR)$$i..."; \ | |
152 | $(MAKE) $(MFLAGS) tag); \ | |
153 | done | |
154 | ||
155 | Makefiles:: | |
156 | @case '${MFLAGS}' in *[ik]*) set +e;; esac; \ | |
157 | for i in $(SUBDIRS);\ | |
158 | do \ | |
159 | echo "Making "Makefiles" in $(DIR)$$i..."; \ | |
160 | (cd $$i || exit 1; \ | |
161 | if test ! -f Makefile; then /bin/sh Makefile.SH; fi; \ | |
162 | $(MAKE) $(MFLAGS) Makefiles) \ | |
163 | done | |
164 | ||
165 | Makefiles.SH:: Makefile.SH | |
166 | @case '${MFLAGS}' in *[ik]*) set +e;; esac; \ | |
167 | for i in $(SUBDIRS);\ | |
168 | do \ | |
169 | case "$(DIR)$$i/" in \ | |
170 | */*/*/*/) newtop=../../../..;; \ | |
171 | */*/*/) newtop=../../..;; \ | |
172 | */*/) newtop=../..;; \ | |
173 | */) newtop=..;; \ | |
174 | esac; \ | |
175 | case "$(TOP)" in \ | |
176 | /*) newtop="$(TOP)" ;; \ | |
177 | esac; \ | |
178 | echo "Making Makefiles.SH in $(DIR)$$i..."; \ | |
179 | (cd $$i || exit 1; $(MAKE) $(MFLAGS) -f ../Makefile \ | |
180 | Makefile TOP=$$newtop CURRENT=$(DIR)$$i;\ | |
181 | $(MAKE) $(MFLAGS) Makefiles.SH) \ | |
182 | done | |
183 | ||
184 | all:: | |
185 | @$(MAKE) subdirs TARGET=all VERB="Making all" FLAGS= | |
186 |