1 | # -*-Makefile-*- template for DJGPP
|
---|
2 | # Makefile.in generated automatically by automake 1.2 from Makefile.am
|
---|
3 | #
|
---|
4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
|
---|
5 | # 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
|
---|
6 | # This file is part of GNU Make.
|
---|
7 | #
|
---|
8 | # GNU Make is free software; you can redistribute it and/or modify it under
|
---|
9 | # the terms of the GNU General Public License as published by the Free Software
|
---|
10 | # Foundation; either version 3 of the License, or (at your option) any later
|
---|
11 | # version.
|
---|
12 | #
|
---|
13 | # GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
|
---|
14 | # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
---|
15 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
---|
16 | # details.
|
---|
17 | #
|
---|
18 | # You should have received a copy of the GNU General Public License along with
|
---|
19 | # this program. If not, see <http://www.gnu.org/licenses/>.
|
---|
20 |
|
---|
21 | SHELL = /bin/sh
|
---|
22 |
|
---|
23 | srcdir = .
|
---|
24 | VPATH = $(srcdir)
|
---|
25 | # $DJDIR is defined automatically by DJGPP to point
|
---|
26 | # to the root of the DJGPP installation tree.
|
---|
27 | prefix = /dev/env/DJDIR
|
---|
28 | exec_prefix = ${prefix}
|
---|
29 |
|
---|
30 | bindir = /bin
|
---|
31 | datadir = /share
|
---|
32 | libdir = /lib
|
---|
33 | infodir = /info
|
---|
34 | mandir = /man
|
---|
35 | includedir = /include
|
---|
36 | oldincludedir = c:/djgpp/include
|
---|
37 |
|
---|
38 | DESTDIR = /dev/env/DJDIR
|
---|
39 |
|
---|
40 | pkgdatadir = $(datadir)/make
|
---|
41 | pkglibdir = $(libdir)/make
|
---|
42 | pkgincludedir = $(includedir)/make
|
---|
43 | localedir = $(datadir)/locale
|
---|
44 |
|
---|
45 | INSTALL = ${exec_prefix}/bin/ginstall -c
|
---|
46 | INSTALL_PROGRAM = ${exec_prefix}/bin/ginstall -c
|
---|
47 | INSTALL_DATA = ${exec_prefix}/bin/ginstall -c -m 644
|
---|
48 | INSTALL_SCRIPT = ${exec_prefix}/bin/ginstall -c
|
---|
49 | transform = s,x,x,
|
---|
50 |
|
---|
51 | # This will fail even if they don't have a Unix-like shell (stock DOS
|
---|
52 | # shell doesn't know about `false'). The only difference is that they
|
---|
53 | # get "Error -1" instead of "Error 1".
|
---|
54 | EXIT_FAIL = false
|
---|
55 |
|
---|
56 | NORMAL_INSTALL = :
|
---|
57 | PRE_INSTALL = :
|
---|
58 | POST_INSTALL = :
|
---|
59 | NORMAL_UNINSTALL = :
|
---|
60 | PRE_UNINSTALL = :
|
---|
61 | POST_UNINSTALL = :
|
---|
62 | EXEEXT = .exe
|
---|
63 | OBJEXT = o
|
---|
64 |
|
---|
65 | AR = ar
|
---|
66 | AWK = gawk
|
---|
67 | CC = gcc
|
---|
68 | CPP = gcc -E
|
---|
69 | LIBOBJS =
|
---|
70 | MAKEINFO = ${exec_prefix}/bin/makeinfo
|
---|
71 | PACKAGE = make
|
---|
72 | PERL = perl
|
---|
73 | RANLIB = ranlib
|
---|
74 | REMOTE = stub
|
---|
75 | VERSION = %VERSION%
|
---|
76 |
|
---|
77 | AUTOMAKE_OPTIONS = 1.2
|
---|
78 |
|
---|
79 | bin_PROGRAMS = %PROGRAMS%$(EXEEXT)
|
---|
80 |
|
---|
81 | make_SOURCES = %SOURCES%
|
---|
82 | # This should include the glob/ prefix
|
---|
83 | libglob_a_SOURCES = %GLOB_SOURCES%
|
---|
84 | make_LDADD = glob/libglob.a
|
---|
85 |
|
---|
86 | man_MANS = make.1
|
---|
87 |
|
---|
88 | INCLUDES = -I$(srcdir)/glob -DLIBDIR=\"$(prefix)$(libdir)\" -DINCLUDEDIR=\"$(prefix)$(includedir)\" -DLOCALEDIR=\"$(prefix)$(localedir)\"
|
---|
89 |
|
---|
90 | BUILT_SOURCES = README build.sh-in
|
---|
91 |
|
---|
92 | EXTRA_DIST = $(BUILT_SOURCES) $(man_MANS) README.customs remote-cstms.c make-stds.texi texinfo.tex SCOPTIONS SMakefile Makefile.ami README.Amiga config.ami amiga.c amiga.h NMakefile README.DOS configh.dos configure.bat makefile.com README.W32 build_w32.bat config.h-W32 subproc.bat make.lnk config.h-vms makefile.vms readme.vms vmsdir.h vmsfunctions.c vmsify.c
|
---|
93 |
|
---|
94 | SUBDIRS = glob doc
|
---|
95 | mkinstalldirs = ${exec_prefix}/bin/gmkdir -p
|
---|
96 | CONFIG_HEADER = config.h
|
---|
97 | CONFIG_CLEAN_FILES = build.sh
|
---|
98 | PROGRAMS = $(bin_PROGRAMS)
|
---|
99 |
|
---|
100 | MAKE_HOST = i386-pc-msdosdjgpp
|
---|
101 |
|
---|
102 |
|
---|
103 | DEFS = -I. -I$(srcdir) -I.
|
---|
104 | CPPFLAGS = -DHAVE_CONFIG_H
|
---|
105 | LDFLAGS =
|
---|
106 | LIBS =
|
---|
107 | make_OBJECTS = %OBJECTS%
|
---|
108 | make_DEPENDENCIES = glob/libglob.a
|
---|
109 | make_LDFLAGS =
|
---|
110 | libglob_a_LIBADD =
|
---|
111 | libglob_a_OBJECTS = %GLOB_OBJECTS%
|
---|
112 | noinst_LIBRARIES = glob/libglob.a
|
---|
113 | CFLAGS = -O2 -g
|
---|
114 | COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
|
---|
115 | LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
|
---|
116 | TEXI2DVI = texi2dvi
|
---|
117 | TEXINFO_TEX = $(srcdir)/config/texinfo.tex
|
---|
118 | INFO_DEPS = doc/make.info
|
---|
119 | DVIS = doc/make.dvi
|
---|
120 | TEXINFOS = doc/make.texi
|
---|
121 | noinst_TEXINFOS = doc/fdl.texi doc/make-stds.texi
|
---|
122 | man1dir = $(mandir)/man1
|
---|
123 | MANS = $(man_MANS)
|
---|
124 |
|
---|
125 | NROFF = nroff
|
---|
126 | DIST_COMMON = README ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL Makefile.am Makefile.in NEWS acconfig.h aclocal.m4 alloca.c build.sh-in config.h-in configure configure.in getloadavg.c
|
---|
127 |
|
---|
128 | DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
---|
129 |
|
---|
130 | TAR = gtar
|
---|
131 | GZIP = --best
|
---|
132 | SOURCES = $(make_SOURCES)
|
---|
133 | OBJECTS = $(make_OBJECTS)
|
---|
134 | HEADERS = $(wildcard $(srcdir)/*.h)
|
---|
135 |
|
---|
136 | default: all
|
---|
137 |
|
---|
138 | .SUFFIXES:
|
---|
139 | .SUFFIXES: .c .dvi .info .o .obj .ps .texi .tex .html
|
---|
140 |
|
---|
141 | mostlyclean-hdr:
|
---|
142 |
|
---|
143 | clean-hdr:
|
---|
144 |
|
---|
145 | distclean-hdr:
|
---|
146 | -rm -f config.h
|
---|
147 |
|
---|
148 | maintainer-clean-hdr:
|
---|
149 |
|
---|
150 | mostlyclean-binPROGRAMS:
|
---|
151 |
|
---|
152 | clean-binPROGRAMS:
|
---|
153 | -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
|
---|
154 |
|
---|
155 | distclean-binPROGRAMS:
|
---|
156 |
|
---|
157 | maintainer-clean-binPROGRAMS:
|
---|
158 |
|
---|
159 | install-binPROGRAMS: $(bin_PROGRAMS)
|
---|
160 | @$(NORMAL_INSTALL)
|
---|
161 | $(mkinstalldirs) $(DESTDIR)$(bindir)
|
---|
162 | @list='$(bin_PROGRAMS)'; for p in $$list; do if test -f $$p; then echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p | sed '$(transform)'`"; $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p | sed '$(transform)'`; else :; fi; done
|
---|
163 |
|
---|
164 | uninstall-binPROGRAMS:
|
---|
165 | $(NORMAL_UNINSTALL)
|
---|
166 | list='$(bin_PROGRAMS)'; for p in $$list; do rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`.exe; done
|
---|
167 |
|
---|
168 | .c.o:
|
---|
169 | $(COMPILE) -c $<
|
---|
170 |
|
---|
171 | clean-noinstLIBRARIES:
|
---|
172 | -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
|
---|
173 |
|
---|
174 | mostlyclean-compile:
|
---|
175 | -rm -f *.$(OBJEXT) *$(EXEEXT) make.new core
|
---|
176 |
|
---|
177 | clean-compile:
|
---|
178 |
|
---|
179 | distclean-compile:
|
---|
180 | -rm -f *.tab.c *_tab.c
|
---|
181 |
|
---|
182 | maintainer-clean-compile:
|
---|
183 |
|
---|
184 | make$(EXEEXT): $(make_OBJECTS) $(make_DEPENDENCIES)
|
---|
185 | @command.com /c if exist make del make
|
---|
186 | @command.com /c if exist make.exe del make.exe
|
---|
187 | $(LINK) $(make_LDFLAGS) $(make_OBJECTS) $(make_LDADD) $(LIBS)
|
---|
188 |
|
---|
189 | # Documentation
|
---|
190 |
|
---|
191 | make.info: make.texi
|
---|
192 | make.dvi: make.texi
|
---|
193 | make.ps: make.dvi make.texi
|
---|
194 | make.html: make.texi
|
---|
195 |
|
---|
196 |
|
---|
197 | DVIPS = dvips
|
---|
198 |
|
---|
199 | .texi.info:
|
---|
200 | @command.com /c if exist make.info* del make.info*
|
---|
201 | @command.com /c if exist make.i* del make.i*
|
---|
202 | $(MAKEINFO) -I$(srcdir) --no-split $< -o ./$@
|
---|
203 |
|
---|
204 | .texi:
|
---|
205 | @command.com /c if exist make.info* del make.info*
|
---|
206 | @command.com /c if exist make.i* del make.i*
|
---|
207 | $(MAKEINFO) -I$(srcdir) --no-split $< -o ./$@
|
---|
208 |
|
---|
209 | .texi.dvi:
|
---|
210 | TEXINPUTS="$(srcdir);$$TEXINPUTS" MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
|
---|
211 |
|
---|
212 | .dvi.ps:
|
---|
213 | $(DVIPS) $< -o $@
|
---|
214 |
|
---|
215 | # Other documentation formats
|
---|
216 |
|
---|
217 | html: html-recursive
|
---|
218 |
|
---|
219 | .texi.html:
|
---|
220 | @command.com /c if exist make.html* del make.html*
|
---|
221 | $(MAKEINFO) --html -I$(srcdir) --no-split $< -o ./$@
|
---|
222 |
|
---|
223 | install-info-am: $(INFO_DEPS)
|
---|
224 | @$(NORMAL_INSTALL)
|
---|
225 | $(mkinstalldirs) $(DESTDIR)$(infodir)
|
---|
226 | @for file in $(INFO_DEPS); do iifile=`echo $$file | sed "s|doc/||"`; d=$(srcdir); for ifile in `cd $$d && echo $$file`; do if test -f $$d/$$ifile; then echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$iifile"; $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$iifile; else : ; fi; done; done
|
---|
227 | @$(POST_INSTALL)
|
---|
228 | @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then for file in $(INFO_DEPS); do iifile=`echo $$file | sed "s|doc/||"`; echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$iifile"; install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$iifile || :; done; else : ; fi
|
---|
229 |
|
---|
230 | uninstall-info:
|
---|
231 | $(PRE_UNINSTALL)
|
---|
232 | @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then ii=yes; else ii=; fi; for file in $(INFO_DEPS); do test -z $ii || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; done
|
---|
233 | $(NORMAL_UNINSTALL)
|
---|
234 | for file in $(INFO_DEPS); do (cd $(DESTDIR)$(infodir) && rm -f $$file); done
|
---|
235 |
|
---|
236 | dist-info: $(INFO_DEPS)
|
---|
237 | for base in $(INFO_DEPS); do d=$(srcdir); for file in `cd $$d && eval echo $$base*`; do test -f $(distdir)/$$file || ln $$d/$$file $(distdir)/$$file 2> /dev/null || cp -p $$d/$$file $(distdir)/$$file; done; done
|
---|
238 |
|
---|
239 | mostlyclean-aminfo:
|
---|
240 | -rm -f $(srcdir)/doc/make.aux $(srcdir)/doc/make.cp $(srcdir)/doc/make.cps $(srcdir)/doc/make.dvi \
|
---|
241 | $(srcdir)/doc/make.fn $(srcdir)/doc/make.fns $(srcdir)/doc/make.ky $(srcdir)/doc/make.kys \
|
---|
242 | $(srcdir)/doc/make.ps $(srcdir)/doc/make.log $(srcdir)/doc/make.pg $(srcdir)/doc/make.toc \
|
---|
243 | $(srcdir)/doc/make.tp $(srcdir)/doc/make.tps $(srcdir)/doc/make.vr $(srcdir)/doc/make.vrs \
|
---|
244 | $(srcdir)/doc/make.op $(srcdir)/doc/make.tr $(srcdir)/doc/make.cv $(srcdir)/doc/make.cn \
|
---|
245 | $(srcdir)/doc/make.html
|
---|
246 |
|
---|
247 | clean-aminfo:
|
---|
248 |
|
---|
249 | distclean-aminfo:
|
---|
250 |
|
---|
251 | maintainer-clean-aminfo:
|
---|
252 | for i in $(INFO_DEPS); do rm -f $$i*; done
|
---|
253 |
|
---|
254 | install-man1:
|
---|
255 | $(mkinstalldirs) $(DESTDIR)$(man1dir)
|
---|
256 | @list='$(man1_MANS)'; \
|
---|
257 | l2='$(man_MANS)'; for i in $$l2; do \
|
---|
258 | case "$$i" in \
|
---|
259 | *.1*) list="$$list $$i" ;; \
|
---|
260 | esac; \
|
---|
261 | done; \
|
---|
262 | for i in $$list; do \
|
---|
263 | if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
|
---|
264 | else file=$$i; fi; \
|
---|
265 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \
|
---|
266 | inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
|
---|
267 | inst=`echo $$inst | sed '$(transform)'`.$$ext; \
|
---|
268 | echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
|
---|
269 | $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
|
---|
270 | done
|
---|
271 |
|
---|
272 | uninstall-man1:
|
---|
273 | @list='$(man1_MANS)'; \
|
---|
274 | l2='$(man_MANS)'; for i in $$l2; do \
|
---|
275 | case "$$i" in \
|
---|
276 | *.1*) list="$$list $$i" ;; \
|
---|
277 | esac; \
|
---|
278 | done; \
|
---|
279 | for i in $$list; do \
|
---|
280 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \
|
---|
281 | inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
|
---|
282 | inst=`echo $$inst | sed '$(transform)'`.$$ext; \
|
---|
283 | echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
|
---|
284 | rm -f $(DESTDIR)$(man1dir)/$$inst; \
|
---|
285 | done
|
---|
286 | install-man: $(MANS)
|
---|
287 | @$(NORMAL_INSTALL)
|
---|
288 | $(MAKE) install-man1
|
---|
289 | uninstall-man:
|
---|
290 | @$(NORMAL_UNINSTALL)
|
---|
291 | $(MAKE) uninstall-man1
|
---|
292 |
|
---|
293 | # Assume that the only thing to do in glob is to build libglob.a,
|
---|
294 | # but do a sanity check: if $SUBDIRS will ever have more than
|
---|
295 | # a single directory, yell bloody murder.
|
---|
296 | all-recursive:
|
---|
297 | ifeq ($(findstring glob, $(SUBDIRS)), glob)
|
---|
298 | @command.com /c if not exist glob\\nul md glob
|
---|
299 | @echo Making all in glob
|
---|
300 | $(MAKE) -C glob -f ../Makefile INCLUDES='-I$(srcdir) -I$(srcdir)/glob' DEFS='-I.. -I$(srcdir)' VPATH=$(srcdir)/glob libglob.a
|
---|
301 | endif
|
---|
302 |
|
---|
303 | $(SUBDIRS):
|
---|
304 | command.com /c md $@
|
---|
305 |
|
---|
306 | libglob.a: $(libglob_a_OBJECTS)
|
---|
307 | command.com /c if exist libglob.a del libglob.a
|
---|
308 | $(AR) cru libglob.a $(libglob_a_OBJECTS) $(libglob_a_LIBADD)
|
---|
309 | $(RANLIB) libglob.a
|
---|
310 |
|
---|
311 | mostlyclean-recursive clean-recursive distclean-recursive \
|
---|
312 | maintainer-clean-recursive check-recursive:
|
---|
313 | ifeq ($(words $(SUBDIRS)), 2)
|
---|
314 | @echo Making $(shell echo $@ | sed s/-recursive//) in glob
|
---|
315 | $(MAKE) -C glob -f ../Makefile $(shell echo $@ | sed s/-recursive//)-am
|
---|
316 | @echo Making $(shell echo $@ | sed s/-recursive//) in doc
|
---|
317 | $(MAKE) -C doc -f ../Makefile $(shell echo $@ | sed s/-recursive//)-am
|
---|
318 | else
|
---|
319 | @echo FATAL: There is more than two directory in "($(SUBDIRS))"
|
---|
320 | @$(EXIT_FAIL)
|
---|
321 | endif
|
---|
322 |
|
---|
323 | tags-in-glob: $(libglob_a_SOURCES)
|
---|
324 | etags $(addprefix $(srcdir)/,$^) -o ./glob/TAGS
|
---|
325 |
|
---|
326 | tags-recursive:
|
---|
327 | ifeq ($(words $(SUBDIRS)), 2)
|
---|
328 | $(MAKE) tags-in-glob
|
---|
329 | else
|
---|
330 | @echo FATAL: There is more than two directory in "($(SUBDIRS))"
|
---|
331 | @$(EXIT_FAIL)
|
---|
332 | endif
|
---|
333 |
|
---|
334 | tags: TAGS
|
---|
335 |
|
---|
336 | ID: $(HEADERS) $(SOURCES)
|
---|
337 | mkid $(srcdir)/$(SOURCES) $(srcdir)/$(libglob_a_SOURCES) ./config.h $(HEADERS)
|
---|
338 |
|
---|
339 | TAGS: tags-recursive $(HEADERS) $(srcdir)/$(SOURCES) config.h $(TAGS_DEPENDENCIES)
|
---|
340 | etags -i ./glob/TAGS $(ETAGS_ARGS) $(srcdir)/$(SOURCES) ./config.h $(HEADERS)
|
---|
341 |
|
---|
342 | mostlyclean-tags:
|
---|
343 |
|
---|
344 | clean-tags:
|
---|
345 |
|
---|
346 | distclean-tags:
|
---|
347 | -rm -f TAGS ID
|
---|
348 |
|
---|
349 | maintainer-clean-tags:
|
---|
350 |
|
---|
351 | distdir = $(PACKAGE)-$(VERSION)
|
---|
352 | top_distdir = $(distdir)
|
---|
353 |
|
---|
354 | # This target untars the dist file and tries a VPATH configuration. Then
|
---|
355 | # it guarantees that the distribution is self-contained by making another
|
---|
356 | # tarfile.
|
---|
357 | distcheck: dist
|
---|
358 | rm -rf $(distdir)
|
---|
359 | GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
|
---|
360 | mkdir $(distdir)/=build
|
---|
361 | mkdir $(distdir)/=inst
|
---|
362 | dc_install_base=`cd $(distdir)/=inst && pwd`; cd $(distdir)/=build && ../configure --srcdir=.. --prefix=$$dc_install_base && $(MAKE) && $(MAKE) dvi && $(MAKE) check && $(MAKE) install && $(MAKE) installcheck && $(MAKE) dist
|
---|
363 | rm -rf $(distdir)
|
---|
364 | @echo "========================"; echo "$(distdir).tar.gz is ready for distribution"; echo "========================"
|
---|
365 | dist: distdir
|
---|
366 | -chmod -R a+r $(distdir)
|
---|
367 | GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
---|
368 | rm -rf $(distdir)
|
---|
369 | dist-all: distdir
|
---|
370 | -chmod -R a+r $(distdir)
|
---|
371 | GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
---|
372 | rm -rf $(distdir)
|
---|
373 | distdir: $(DISTFILES)
|
---|
374 | rm -rf $(distdir)
|
---|
375 | mkdir $(distdir)
|
---|
376 | -chmod 777 $(distdir)
|
---|
377 | @for file in $(DISTFILES); do d=$(srcdir); test -f $(distdir)/$$file || ln $$d/$$file $(distdir)/$$file 2> /dev/null || cp -p $$d/$$file $(distdir)/$$file; done; for subdir in $(SUBDIRS); do test -d $(distdir)/$$subdir || mkdir $(distdir)/$$subdir || exit 1; chmod 777 $(distdir)/$$subdir; (cd $$subdir && $(MAKE) top_distdir=../$(top_distdir)/$$subdir distdir=../$(distdir)/$$subdir distdir) || exit 1; done
|
---|
378 | $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info
|
---|
379 | $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook
|
---|
380 |
|
---|
381 | info: info-recursive
|
---|
382 | info-recursive:
|
---|
383 | ifeq ($(findstring doc, $(SUBDIRS)), doc)
|
---|
384 | @command.com /c if not exist doc\\nul md doc
|
---|
385 | @echo Making all in doc
|
---|
386 | $(MAKE) -C doc -f ../Makefile VPATH=$(srcdir)/doc make.info
|
---|
387 | endif
|
---|
388 |
|
---|
389 | dvi: dvi-recursive
|
---|
390 | dvi-recursive:
|
---|
391 | ifeq ($(findstring doc, $(SUBDIRS)), doc)
|
---|
392 | @command.com /c if not exist doc\\nul md doc
|
---|
393 | @echo Making all in doc
|
---|
394 | $(MAKE) -C doc -f ../Makefile VPATH=$(srcdir)/doc make.dvi
|
---|
395 | endif
|
---|
396 |
|
---|
397 | ps: ps-recursive
|
---|
398 | ps-recursive:
|
---|
399 | ifeq ($(findstring doc, $(SUBDIRS)), doc)
|
---|
400 | @command.com /c if not exist doc\\nul md doc
|
---|
401 | @echo Making all in doc
|
---|
402 | $(MAKE) -C doc -f ../Makefile VPATH=$(srcdir)/doc make.ps
|
---|
403 | endif
|
---|
404 |
|
---|
405 | html-recursive:
|
---|
406 | ifeq ($(findstring doc, $(SUBDIRS)), doc)
|
---|
407 | @command.com /c if not exist doc\\nul md doc
|
---|
408 | @echo Making all in doc
|
---|
409 | $(MAKE) -C doc -f ../Makefile VPATH=$(srcdir)/doc make.html
|
---|
410 | endif
|
---|
411 |
|
---|
412 | check: all-am check-recursive check-local
|
---|
413 | @:
|
---|
414 | installcheck: installcheck-recursive
|
---|
415 | all-recursive-am: config.h
|
---|
416 | $(MAKE) all-recursive
|
---|
417 |
|
---|
418 | all-am: Makefile $(PROGRAMS) config.h info
|
---|
419 |
|
---|
420 | install-exec-am: install-binPROGRAMS
|
---|
421 |
|
---|
422 | install-data-am: install-info-am
|
---|
423 |
|
---|
424 | uninstall-am: uninstall-binPROGRAMS uninstall-info
|
---|
425 |
|
---|
426 | install-exec: install-exec-recursive install-exec-am
|
---|
427 | @$(NORMAL_INSTALL)
|
---|
428 |
|
---|
429 | install-data: install-data-recursive install-data-am
|
---|
430 | @$(NORMAL_INSTALL)
|
---|
431 |
|
---|
432 | install-recursive uninstall-recursive:
|
---|
433 | @:
|
---|
434 |
|
---|
435 | install: install-recursive install-exec-am install-data-am
|
---|
436 | @:
|
---|
437 |
|
---|
438 | uninstall: uninstall-recursive uninstall-am
|
---|
439 |
|
---|
440 | all: all-recursive-am all-am
|
---|
441 |
|
---|
442 | install-strip:
|
---|
443 | $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
|
---|
444 | installdirs: installdirs-recursive
|
---|
445 | $(mkinstalldirs) $(bindir) $(infodir)
|
---|
446 |
|
---|
447 |
|
---|
448 | mostlyclean-generic:
|
---|
449 | -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
|
---|
450 |
|
---|
451 | clean-generic:
|
---|
452 | -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
---|
453 |
|
---|
454 | distclean-generic:
|
---|
455 | -rm -f Makefile $(DISTCLEANFILES)
|
---|
456 | -rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
---|
457 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
---|
458 |
|
---|
459 | maintainer-clean-generic:
|
---|
460 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
|
---|
461 | -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
|
---|
462 | mostlyclean-am: mostlyclean-hdr mostlyclean-binPROGRAMS mostlyclean-compile mostlyclean-aminfo mostlyclean-tags mostlyclean-generic
|
---|
463 |
|
---|
464 | clean-am: clean-hdr clean-binPROGRAMS clean-compile clean-aminfo clean-tags clean-generic mostlyclean-am
|
---|
465 |
|
---|
466 | distclean-am: distclean-hdr distclean-binPROGRAMS distclean-compile distclean-aminfo distclean-tags distclean-generic clean-am
|
---|
467 |
|
---|
468 | maintainer-clean-am: maintainer-clean-hdr maintainer-clean-binPROGRAMS maintainer-clean-compile maintainer-clean-aminfo maintainer-clean-tags maintainer-clean-generic distclean-am
|
---|
469 |
|
---|
470 | mostlyclean: mostlyclean-recursive mostlyclean-am
|
---|
471 |
|
---|
472 | clean: clean-noinstLIBRARIES clean-recursive clean-am
|
---|
473 |
|
---|
474 | distclean: distclean-recursive distclean-am
|
---|
475 | rm -f config.status
|
---|
476 |
|
---|
477 | maintainer-clean: maintainer-clean-recursive maintainer-clean-am
|
---|
478 | @echo "This command is intended for maintainers to use;"
|
---|
479 | @echo "it deletes files that may require special tools to rebuild."
|
---|
480 | rm -f config.status
|
---|
481 |
|
---|
482 | .PHONY: default mostlyclean-hdr distclean-hdr clean-hdr \
|
---|
483 | maintainer-clean-hdr mostlyclean-binPROGRAMS distclean-binPROGRAMS \
|
---|
484 | clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
|
---|
485 | install-binPROGRAMS mostlyclean-compile distclean-compile clean-compile \
|
---|
486 | maintainer-clean-compile install-info-am uninstall-info \
|
---|
487 | mostlyclean-aminfo distclean-aminfo clean-aminfo \
|
---|
488 | maintainer-clean-aminfo install-data-recursive uninstall-data-recursive \
|
---|
489 | install-exec-recursive uninstall-exec-recursive installdirs-recursive \
|
---|
490 | uninstalldirs-recursive all-recursive check-recursive check-am \
|
---|
491 | installcheck-recursive info-recursive dvi-recursive \
|
---|
492 | mostlyclean-recursive distclean-recursive clean-recursive \
|
---|
493 | maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
|
---|
494 | distclean-tags clean-tags maintainer-clean-tags distdir \
|
---|
495 | mostlyclean-depend distclean-depend clean-depend \
|
---|
496 | maintainer-clean-depend info dvi check-local installcheck \
|
---|
497 | all-recursive-am all-am install-exec-am install-data-am uninstall-am \
|
---|
498 | install-exec install-data install uninstall all installdirs \
|
---|
499 | mostlyclean-generic distclean-generic clean-generic \
|
---|
500 | maintainer-clean-generic clean mostlyclean distclean maintainer-clean \
|
---|
501 | html
|
---|
502 |
|
---|
503 |
|
---|
504 | # --------------- Local DIST Section
|
---|
505 |
|
---|
506 | # Install the w32 subdirectory
|
---|
507 | #
|
---|
508 | dist-hook:
|
---|
509 | (cd $(srcdir); \
|
---|
510 | w32=`find w32 -follow \( -name CVS -prune \) -o -type f -print`; \
|
---|
511 | tar chf - $$w32) \
|
---|
512 | | (cd $(distdir); tar xfBp -)
|
---|
513 |
|
---|
514 | # --------------- Local CHECK Section
|
---|
515 |
|
---|
516 | # Note: check-loadavg is NOT a prerequisite of check-local, since
|
---|
517 | # there's no uptime utility, and the test it does doesn't make sense
|
---|
518 | # on MSDOS anyway.
|
---|
519 | check-local: check-shell check-regression
|
---|
520 | @banner=" Regression PASSED: GNU Make $(VERSION) ($(MAKE_HOST)) built with $(CC) "; \
|
---|
521 | dashes=`echo "$$banner" | sed s/./=/g`; \
|
---|
522 | echo; \
|
---|
523 | echo "$$dashes"; \
|
---|
524 | echo "$$banner"; \
|
---|
525 | echo "$$dashes"; \
|
---|
526 | echo
|
---|
527 |
|
---|
528 | .PHONY: check-loadavg check-shell check-regression
|
---|
529 |
|
---|
530 | # > check-shell
|
---|
531 | #
|
---|
532 | # check-shell is designed to fail if they don't have a Unixy shell
|
---|
533 | # installed. The test suite requires such a shell.
|
---|
534 | check-shell:
|
---|
535 | @echo If Make says Error -1, you do not have Unix-style shell installed
|
---|
536 | @foo=bar.exe :
|
---|
537 |
|
---|
538 | # > check-loadavg
|
---|
539 | #
|
---|
540 | loadavg: loadavg.c config.h
|
---|
541 | @rm -f loadavg
|
---|
542 | $(LINK) -DTEST $(make_LDFLAGS) loadavg.c $(LIBS)
|
---|
543 | # We copy getloadavg.c into a different file rather than compiling it
|
---|
544 | # directly because some compilers clobber getloadavg.o in the process.
|
---|
545 | loadavg.c: getloadavg.c
|
---|
546 | ln $(srcdir)/getloadavg.c loadavg.c || \
|
---|
547 | cp $(srcdir)/getloadavg.c loadavg.c
|
---|
548 | check-loadavg: loadavg
|
---|
549 | @echo The system uptime program believes the load average to be:
|
---|
550 | -uptime
|
---|
551 | @echo The GNU load average checking code believes:
|
---|
552 | -./loadavg
|
---|
553 |
|
---|
554 | # > check-regression
|
---|
555 | #
|
---|
556 | # Look for the make test suite, and run it if found. Look in MAKE_TEST if
|
---|
557 | # specified, or else in the srcdir or the distdir, their parents, and _their_
|
---|
558 | # parents.
|
---|
559 | #
|
---|
560 | check-regression:
|
---|
561 | @if test -f "$(srcdir)/tests/run_make_tests"; then \
|
---|
562 | if $(PERL) -v >/dev/null 2>&1; then \
|
---|
563 | case `cd $(srcdir); pwd` in `pwd`) : ;; \
|
---|
564 | *) test -d tests || mkdir tests; \
|
---|
565 | for f in run_make_tests run_make_tests.pl test_driver.pl scripts; do \
|
---|
566 | rm -rf tests/$$f; cp -pr $(srcdir)/tests/$$f tests; \
|
---|
567 | done ;; \
|
---|
568 | esac; \
|
---|
569 | echo "cd tests && $(PERL) ./run_make_tests.pl -make ../make.exe $(MAKETESTFLAGS)"; \
|
---|
570 | cd tests && $(PERL) ./run_make_tests.pl -make ../make.exe $(MAKETESTFLAGS); \
|
---|
571 | else \
|
---|
572 | echo "Can't find a working Perl ($(PERL)); the test suite requires Perl."; \
|
---|
573 | fi; \
|
---|
574 | else \
|
---|
575 | echo "Can't find the GNU Make test suite ($(srcdir)/tests)."; \
|
---|
576 | fi
|
---|
577 |
|
---|
578 | # --------------- Maintainer's Section
|
---|
579 |
|
---|
580 | # Note this requires GNU make. Not to worry, since it will only be included
|
---|
581 | # in the Makefile if we're in the maintainer's environment.
|
---|
582 | #include $(srcdir)/maintMakefile
|
---|
583 |
|
---|
584 | # Tell versions [3.59,3.63) of GNU make to not export all variables.
|
---|
585 | # Otherwise a system limit (for SysV at least) may be exceeded.
|
---|
586 | .NOEXPORT:
|
---|
587 |
|
---|
588 | # --------------- DEPENDENCIES
|
---|