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