VirtualBox

source: kBuild/vendor/gnumake/current/Makefile.DOS.template

Last change on this file was 3138, checked in by bird, 7 years ago

Imported make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6) from https://git.savannah.gnu.org/git/make.git.

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette