* New config.sub and config.guess
[make.git] / Makefile.DOS.template
blobc445381fdc3df6d1ddc01b8fd147afb67ddff4f1
1 # -*-Makefile-*- template for DJGPP
2 # Makefile.in generated automatically by automake 1.2 from Makefile.am
4 # Copyright (C) 1994, 1995-1998, 1999 Free Software Foundation, Inc.
5 # This Makefile.DOS is free software; the Free Software Foundation
6 # gives unlimited permission to copy, distribute and modify it.
9 SHELL = /bin/sh
11 srcdir = .
12 VPATH = $(srcdir)
13 # $DJDIR is defined automatically by DJGPP to point
14 # to the root of the DJGPP installation tree.
15 prefix = /dev/env/DJDIR
16 exec_prefix = ${prefix}
18 bindir = ${exec_prefix}/bin
19 datadir = ${prefix}/share
20 libdir = ${prefix}/lib
21 infodir = ${prefix}/info
22 # DJGPP doesn't have separate man tree, use info instead.
23 mandir = ${prefix}/info
24 includedir = ${prefix}/include
25 oldincludedir = c:/djgpp/include
27 DESTDIR =
29 pkgdatadir = $(datadir)/make
30 pkglibdir = $(libdir)/make
31 pkgincludedir = $(includedir)/make
32 localedir = $(prefix)/share/locale
34 INSTALL = ${bindir}/ginstall -c
35 INSTALL_PROGRAM = ${bindir}/ginstall -c
36 INSTALL_DATA = ${bindir}/ginstall -c -m 644
37 INSTALL_SCRIPT = ${bindir}/ginstall -c
38 transform = s,x,x,
40 # This will fail even if they don't have a Unix-like shell (stock DOS
41 # shell doesn't know about `false').  The only difference is that they
42 # get "Error -1" instead of "Error 1".
43 EXIT_FAIL = false
45 NORMAL_INSTALL = :
46 PRE_INSTALL = :
47 POST_INSTALL = :
48 NORMAL_UNINSTALL = :
49 PRE_UNINSTALL = :
50 POST_UNINSTALL = :
51 AR = ar
52 CC = gcc
53 CPP = gcc -E
54 LIBOBJS =
55 MAKEINFO = ${bindir}/makeinfo
56 PACKAGE = make
57 PERL = perl
58 RANLIB = ranlib
59 REMOTE = stub
60 VERSION = %VERSION%
62 AUTOMAKE_OPTIONS = 1.2
64 bin_PROGRAMS =  %PROGRAMS%
66 make_SOURCES =  %SOURCES%
67 # This should include the glob/ prefix
68 libglob_a_SOURCES =     %GLOB_SOURCES%
69 make_LDADD =      glob/libglob.a
71 info_TEXINFOS = make.texinfo
72 man_MANS =      make.1
74 INCLUDES =      -I$(srcdir)/glob -DLIBDIR=\"c:/djgpp/lib\" -DINCLUDEDIR=\"c:/djgpp/include\" -DLOCALEDIR=\"$(localedir)\"
76 BUILT_SOURCES = README build.sh-in
78 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
80 SUBDIRS =       glob
81 mkinstalldirs = ${bindir}/gmkdir -p
82 CONFIG_HEADER = config.h
83 CONFIG_CLEAN_FILES =  build.sh
84 PROGRAMS =  $(bin_PROGRAMS)
86 MAKE_HOST = i386-pc-msdosdjgpp
89 DEFS =  -I. -I$(srcdir) -I.
90 CPPFLAGS = -DHAVE_CONFIG_H
91 LDFLAGS =
92 LIBS =
93 make_OBJECTS =  %OBJECTS%
94 make_DEPENDENCIES =    glob/libglob.a
95 make_LDFLAGS =
96 libglob_a_LIBADD =
97 libglob_a_OBJECTS =  %GLOB_OBJECTS%
98 noinst_LIBRARIES =      glob/libglob.a
99 CFLAGS = -O2 -g
100 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
101 LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
102 TEXI2DVI = texi2dvi
103 TEXINFO_TEX = $(srcdir)/texinfo.tex
104 INFO_DEPS = make.info
105 DVIS = make.dvi
106 TEXINFOS = make.texinfo
107 man1dir = $(mandir)/man1
108 MANS = $(man_MANS)
110 NROFF = nroff
111 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 gettext.c install-sh missing mkinstalldirs  stamp-h.in texinfo.tex
114 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
116 TAR = gtar
117 GZIP = --best
118 SOURCES = $(make_SOURCES)
119 OBJECTS = $(make_OBJECTS)
120 HEADERS = $(wildcard $(srcdir)/*.h)
122 default: all
124 .SUFFIXES:
125 .SUFFIXES: .S .c .dvi .info .o .ps .s .texi .texinfo .txi
127 mostlyclean-hdr:
129 clean-hdr:
131 distclean-hdr:
132         -rm -f config.h
134 maintainer-clean-hdr:
136 mostlyclean-binPROGRAMS:
138 clean-binPROGRAMS:
139         -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
141 distclean-binPROGRAMS:
143 maintainer-clean-binPROGRAMS:
145 install-binPROGRAMS: $(bin_PROGRAMS)
146         @$(NORMAL_INSTALL)
147         $(mkinstalldirs) $(DESTDIR)$(bindir)
148         @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
150 uninstall-binPROGRAMS:
151         $(NORMAL_UNINSTALL)
152         list='$(bin_PROGRAMS)'; for p in $$list; do    rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`.exe;  done
154 .c.o:
155         $(COMPILE) -c $<
157 .s.o:
158         $(COMPILE) -c $<
160 .S.o:
161         $(COMPILE) -c $<
163 clean-noinstLIBRARIES:
164         -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
166 mostlyclean-compile:
167         -rm -f *.o *.exe make.new core
169 clean-compile:
171 distclean-compile:
172         -rm -f *.tab.c *_tab.c
174 maintainer-clean-compile:
176 make: $(make_OBJECTS) $(make_DEPENDENCIES)
177         @command.com /c if exist make del make
178         @command.com /c if exist make.exe del make.exe
179         $(LINK) $(make_LDFLAGS) $(make_OBJECTS) $(make_LDADD) $(LIBS)
181 make.info: make.texinfo
182 make.dvi: make.texinfo
185 DVIPS = dvips
187 .texi.info:
188         $(MAKEINFO) $(srcdir)/$< -o ./$@
190 .texi.dvi:
191         TEXINPUTS="$(srcdir);$$TEXINPUTS"    MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
193 .texi:
194         $(MAKEINFO) $(srcdir)/$< -o ./$@
196 .texinfo.info:
197         $(MAKEINFO) $(srcdir)/$< -o ./$@
199 .texinfo:
200         $(MAKEINFO) $(srcdir)/$< -o ./$@
202 .texinfo.dvi:
203         TEXINPUTS="$(srcdir);$$TEXINPUTS"    MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
205 .txi.info:
206         $(MAKEINFO) $(srcdir)/$< -o ./$@
208 .txi.dvi:
209         TEXINPUTS="$(srcdir);$$TEXINPUTS"    MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
211 .dvi.ps:
212         $(DVIPS) $< -o $@
214 install-info-am: $(INFO_DEPS)
215         @$(NORMAL_INSTALL)
216         $(mkinstalldirs) $(DESTDIR)$(infodir)
217         @for file in $(INFO_DEPS) make.i; do    d=$(srcdir);    for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9] $$file[0-9] $$file[0-9][0-9]`; do      if test -f $$d/$$ifile; then        echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; else : ; fi;    done;  done
218         @$(POST_INSTALL)
219         @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then    for file in $(INFO_DEPS); do      echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";     install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :;   done;  else : ; fi
221 uninstall-info:
222         $(PRE_UNINSTALL)
223         @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
224         $(NORMAL_UNINSTALL)
225         for file in $(INFO_DEPS) make.i; do    (cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9] $$file[0-9] $$file[0-9][0-9]);  done
227 dist-info: $(INFO_DEPS)
228         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
230 mostlyclean-aminfo:
231         -rm -f make.aux make.cp make.cps make.dvi make.fn make.fns make.ky \
232           make.kys make.ps make.log make.pg make.toc make.tp make.tps \
233           make.vr make.vrs make.op make.tr make.cv make.cn
235 clean-aminfo:
237 distclean-aminfo:
239 maintainer-clean-aminfo:
240         for i in $(INFO_DEPS) make.i; do rm -f `eval echo $$i*`; done
242 install-man1:
243         $(mkinstalldirs) $(DESTDIR)$(man1dir)
244         @list='$(man1_MANS)'; \
245         l2='$(man_MANS)'; for i in $$l2; do \
246           case "$$i" in \
247             *.1*) list="$$list $$i" ;; \
248           esac; \
249         done; \
250         for i in $$list; do \
251           if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
252           else file=$$i; fi; \
253           ext=`echo $$i | sed -e 's/^.*\\.//'`; \
254           inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
255           inst=`echo $$inst | sed '$(transform)'`.$$ext; \
256           echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
257           $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
258         done
260 uninstall-man1:
261         @list='$(man1_MANS)'; \
262         l2='$(man_MANS)'; for i in $$l2; do \
263           case "$$i" in \
264             *.1*) list="$$list $$i" ;; \
265           esac; \
266         done; \
267         for i in $$list; do \
268           ext=`echo $$i | sed -e 's/^.*\\.//'`; \
269           inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
270           inst=`echo $$inst | sed '$(transform)'`.$$ext; \
271           echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
272           rm -f $(DESTDIR)$(man1dir)/$$inst; \
273         done
274 install-man: $(MANS)
275         @$(NORMAL_INSTALL)
276         $(MAKE) install-man1
277 uninstall-man:
278         @$(NORMAL_UNINSTALL)
279         $(MAKE) uninstall-man1
281 # Assume that the only thing to do in glob is to build libglob.a,
282 # but do a sanity check: if $SUBDIRS will ever have more than
283 # a single directory, yell bloody murder.
284 all-recursive:
285 ifeq ($(words $(SUBDIRS)), 1)
286         @command.com /c if not exist glob\\nul md glob
287         @echo Making all in $(SUBDIRS)
288         $(MAKE) -C $(SUBDIRS) -f ../Makefile INCLUDES='-I$(srcdir) -I$(srcdir)/glob' DEFS='-I.. -I$(srcdir)' VPATH=$(srcdir)/glob libglob.a
289 else
290         @echo FATAL: There is more than one directory in "($(SUBDIRS))"
291         @$(EXIT_FAIL)
292 endif
294 $(SUBDIRS):
295         command.com /c md $@
297 libglob.a: $(libglob_a_OBJECTS)
298         command.com /c if exist libglob.a del libglob.a
299         $(AR) cru libglob.a $(libglob_a_OBJECTS) $(libglob_a_LIBADD)
300         $(RANLIB) libglob.a
302 mostlyclean-recursive clean-recursive distclean-recursive \
303 maintainer-clean-recursive check-recursive:
304 ifeq ($(words $(SUBDIRS)), 1)
305         @echo Making $(shell echo $@ | sed s/-recursive//) in $(SUBDIRS)
306         $(MAKE) -C $(SUBDIRS) -f ../Makefile $(shell echo $@ | sed s/-recursive//)-am
307 else
308         @echo FATAL: There is more than one directory in "($(SUBDIRS))"
309         @$(EXIT_FAIL)
310 endif
312 tags-in-glob: $(libglob_a_SOURCES)
313         etags $(addprefix $(srcdir)/,$^) -o ./glob/TAGS
315 tags-recursive:
316 ifeq ($(words $(SUBDIRS)), 1)
317         $(MAKE) tags-in-glob
318 else
319         @echo FATAL: There is more than one directory in "($(SUBDIRS))"
320         @$(EXIT_FAIL)
321 endif
323 tags: TAGS
325 ID: $(HEADERS) $(SOURCES)
326         mkid $(srcdir)/$(SOURCES) $(srcdir)/$(libglob_a_SOURCES) ./config.h $(HEADERS)
328 TAGS: tags-recursive $(HEADERS) $(srcdir)/$(SOURCES) config.h $(TAGS_DEPENDENCIES)
329         etags -i ./glob/TAGS $(ETAGS_ARGS) $(srcdir)/$(SOURCES) ./config.h $(HEADERS)
331 mostlyclean-tags:
333 clean-tags:
335 distclean-tags:
336         -rm -f TAGS ID
338 maintainer-clean-tags:
340 distdir = $(PACKAGE)-$(VERSION)
341 top_distdir = $(distdir)
343 # This target untars the dist file and tries a VPATH configuration.  Then
344 # it guarantees that the distribution is self-contained by making another
345 # tarfile.
346 distcheck: dist
347         rm -rf $(distdir)
348         GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
349         mkdir $(distdir)/=build
350         mkdir $(distdir)/=inst
351         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
352         rm -rf $(distdir)
353         @echo "========================";  echo "$(distdir).tar.gz is ready for distribution";  echo "========================"
354 dist: distdir
355         -chmod -R a+r $(distdir)
356         GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
357         rm -rf $(distdir)
358 dist-all: distdir
359         -chmod -R a+r $(distdir)
360         GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
361         rm -rf $(distdir)
362 distdir: $(DISTFILES)
363         rm -rf $(distdir)
364         mkdir $(distdir)
365         -chmod 777 $(distdir)
366         @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
367         $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info
368         $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook
370 info: $(INFO_DEPS) info-recursive
371 dvi: $(DVIS) dvi-recursive
372 check: all-am check-recursive check-local
373         @:
374 installcheck: installcheck-recursive
375 all-recursive-am: config.h
376         $(MAKE) all-recursive
378 all-am: Makefile $(INFO_DEPS) $(PROGRAMS) config.h
380 install-exec-am: install-binPROGRAMS
382 install-data-am: install-info-am
384 uninstall-am: uninstall-binPROGRAMS uninstall-info
386 install-exec: install-exec-recursive install-exec-am
387         @$(NORMAL_INSTALL)
389 install-data: install-data-recursive install-data-am
390         @$(NORMAL_INSTALL)
392 install-recursive uninstall-recursive:
393         @:
395 install: install-recursive install-exec-am install-data-am
396         @:
398 uninstall: uninstall-recursive uninstall-am
400 all: all-recursive-am all-am
402 install-strip:
403         $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
404 installdirs: installdirs-recursive
405         $(mkinstalldirs)  $(bindir) $(infodir)
408 mostlyclean-generic:
409         -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
411 clean-generic:
412         -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
414 distclean-generic:
415         -rm -f Makefile $(DISTCLEANFILES)
416         -rm -f config.cache config.log stamp-h stamp-h[0-9]*
417         -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
419 maintainer-clean-generic:
420         -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
421         -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
422 mostlyclean-am:  mostlyclean-hdr mostlyclean-binPROGRAMS  mostlyclean-compile mostlyclean-aminfo mostlyclean-tags  mostlyclean-generic
424 clean-am:  clean-hdr clean-binPROGRAMS clean-compile clean-aminfo  clean-tags clean-generic mostlyclean-am
426 distclean-am:  distclean-hdr distclean-binPROGRAMS distclean-compile  distclean-aminfo distclean-tags distclean-generic  clean-am
428 maintainer-clean-am:  maintainer-clean-hdr maintainer-clean-binPROGRAMS  maintainer-clean-compile maintainer-clean-aminfo  maintainer-clean-tags maintainer-clean-generic  distclean-am
430 mostlyclean:  mostlyclean-recursive mostlyclean-am
432 clean: clean-noinstLIBRARIES clean-recursive clean-am
434 distclean:  distclean-recursive distclean-am
435         rm -f config.status
437 maintainer-clean:  maintainer-clean-recursive maintainer-clean-am
438         @echo "This command is intended for maintainers to use;"
439         @echo "it deletes files that may require special tools to rebuild."
440         rm -f config.status
442 .PHONY: default mostlyclean-hdr distclean-hdr clean-hdr \
443 maintainer-clean-hdr mostlyclean-binPROGRAMS distclean-binPROGRAMS \
444 clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
445 install-binPROGRAMS mostlyclean-compile distclean-compile clean-compile \
446 maintainer-clean-compile install-info-am uninstall-info \
447 mostlyclean-aminfo distclean-aminfo clean-aminfo \
448 maintainer-clean-aminfo install-data-recursive uninstall-data-recursive \
449 install-exec-recursive uninstall-exec-recursive installdirs-recursive \
450 uninstalldirs-recursive all-recursive check-recursive check-am \
451 installcheck-recursive info-recursive dvi-recursive \
452 mostlyclean-recursive distclean-recursive clean-recursive \
453 maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
454 distclean-tags clean-tags maintainer-clean-tags distdir \
455 mostlyclean-depend distclean-depend clean-depend \
456 maintainer-clean-depend info dvi check-local installcheck \
457 all-recursive-am all-am install-exec-am install-data-am uninstall-am \
458 install-exec install-data install uninstall all installdirs \
459 mostlyclean-generic distclean-generic clean-generic \
460 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
463 # --------------- Local DIST Section
465 # Install the w32 subdirectory
467 dist-hook:
468         (cd $(srcdir); \
469          w32=`find w32 -follow \( -name CVS -prune \) -o -type f -print`; \
470          tar chf - $$w32) \
471         | (cd $(distdir); tar xfBp -)
473 # --------------- Local CHECK Section
475 # Note: check-loadavg is NOT a prerequisite of check-local, since
476 # there's no uptime utility, and the test it does doesn't make sense
477 # on MSDOS anyway.
478 check-local: check-shell check-regression
479         @banner=" Regression PASSED: GNU Make $(VERSION) ($(MAKE_HOST)) built with $(CC) "; \
480         dashes=`echo "$$banner" | sed s/./=/g`; \
481         echo; \
482         echo "$$dashes"; \
483         echo "$$banner"; \
484         echo "$$dashes"; \
485         echo
487 .PHONY: check-loadavg check-shell check-regression
489 # > check-shell
491 # check-shell is designed to fail if they don't have a Unixy shell
492 # installed.  The test suite requires such a shell.
493 check-shell:
494         @echo If Make says Error -1, you do not have Unix-style shell installed
495         @foo=bar.exe :
497 # > check-loadavg
499 loadavg: loadavg.c config.h
500         @rm -f loadavg
501         $(LINK) -DTEST $(make_LDFLAGS) loadavg.c $(LIBS)
502 # We copy getloadavg.c into a different file rather than compiling it
503 # directly because some compilers clobber getloadavg.o in the process.
504 loadavg.c: getloadavg.c
505         ln $(srcdir)/getloadavg.c loadavg.c || \
506         cp $(srcdir)/getloadavg.c loadavg.c
507 check-loadavg: loadavg
508         @echo The system uptime program believes the load average to be:
509         -uptime
510         @echo The GNU load average checking code believes:
511         -./loadavg
513 # > check-regression
515 # Look for the make test suite, and run it if found.  Look in MAKE_TEST if
516 # specified, or else in the srcdir or the distdir, their parents, and _their_
517 # parents.
519 check-regression:
520         @if test -f "$(srcdir)/tests/run_make_tests"; then \
521           if $(PERL) -v >/dev/null 2>&1; then \
522             case `cd $(srcdir); pwd` in `pwd`) : ;; \
523               *) test -d tests || mkdir tests; \
524                  for f in run_make_tests run_make_tests.pl test_driver.pl scripts; do \
525                    rm -rf tests/$$f; cp -pr $(srcdir)/tests/$$f tests; \
526                  done ;; \
527             esac; \
528             echo "cd tests && $(PERL) ./run_make_tests.pl -make ../make.exe $(MAKETESTFLAGS)"; \
529             cd tests && $(PERL) ./run_make_tests.pl -make ../make.exe $(MAKETESTFLAGS); \
530           else \
531             echo "Can't find a working Perl ($(PERL)); the test suite requires Perl."; \
532           fi; \
533          else \
534           echo "Can't find the GNU Make test suite ($(srcdir)/tests)."; \
535          fi
537 # --------------- Maintainer's Section
539 # Note this requires GNU make.  Not to worry, since it will only be included
540 # in the Makefile if we're in the maintainer's environment.
541 #include $(srcdir)/maintMakefile
543 # Tell versions [3.59,3.63) of GNU make to not export all variables.
544 # Otherwise a system limit (for SysV at least) may be exceeded.
545 .NOEXPORT: