xref: /netbsd/external/gpl2/gmake/dist/Makefile.DOS (revision 7f56925b)
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 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 the
9# terms of the GNU General Public License as published by the Free Software
10# Foundation; either version 2, or (at your option) any later 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 FOR
14# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License along with
17# GNU Make; see the file COPYING.  If not, write to the Free Software
18# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
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 = 3.81
75
76AUTOMAKE_OPTIONS = 1.2
77
78bin_PROGRAMS =	make$(EXEEXT)
79
80make_SOURCES =	ar.c arscan.c commands.c default.c dir.c expand.c file.c function.c getopt.c getopt1.c implicit.c job.c main.c misc.c read.c remake.c rule.c signame.c strcache.c variable.c version.c vpath.c hash.c remote-$(REMOTE).c
81# This should include the glob/ prefix
82libglob_a_SOURCES =	glob/fnmatch.c glob/glob.c glob/fnmatch.h glob/glob.h
83make_LDADD =	  glob/libglob.a
84
85info_TEXINFOS =	make.texinfo
86man_MANS =	make.1
87
88INCLUDES =	-I$(srcdir)/glob -DLIBDIR=\"c:/djgpp/lib\" -DINCLUDEDIR=\"c:/djgpp/include\" -DLOCALEDIR=\"$(localedir)\"
89
90BUILT_SOURCES =	README build.sh-in
91
92EXTRA_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
94SUBDIRS =	glob
95mkinstalldirs = ${exec_prefix}/bin/gmkdir -p
96CONFIG_HEADER = config.h
97CONFIG_CLEAN_FILES =  build.sh
98PROGRAMS =  $(bin_PROGRAMS)
99
100MAKE_HOST = i386-pc-msdosdjgpp
101
102
103DEFS =  -I. -I$(srcdir) -I.
104CPPFLAGS = -DHAVE_CONFIG_H
105LDFLAGS =
106LIBS =
107make_OBJECTS =  ar.o arscan.o commands.o default.o dir.o expand.o file.o function.o getopt.o getopt1.o implicit.o job.o main.o misc.o read.o remake.o rule.o signame.o strcache.o variable.o version.o vpath.o hash.o remote-$(REMOTE).o
108make_DEPENDENCIES =    glob/libglob.a
109make_LDFLAGS =
110libglob_a_LIBADD =
111libglob_a_OBJECTS =  fnmatch.o glob.o
112noinst_LIBRARIES =	glob/libglob.a
113CFLAGS = -O2 -g
114COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
115LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
116TEXI2DVI = texi2dvi
117TEXINFO_TEX = $(srcdir)/config/texinfo.tex
118INFO_DEPS = make.info
119DVIS = make.dvi
120TEXINFOS = make.texinfo
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.in 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 .texinfo .tex
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
188make.info: make.texinfo
189make.dvi: make.texinfo
190
191
192DVIPS = dvips
193
194.texinfo.info:
195	@command.com /c if exist make.info* del make.info*
196	@command.com /c if exist make.i* del make.i*
197	$(MAKEINFO) -I$(srcdir) $< -o ./$@
198
199.texinfo:
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) $< -o ./$@
203
204.texinfo.dvi:
205	TEXINPUTS="$(srcdir);$$TEXINPUTS"    MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
206
207
208.dvi.ps:
209	$(DVIPS) $< -o $@
210
211install-info-am: $(INFO_DEPS)
212	@$(NORMAL_INSTALL)
213	$(mkinstalldirs) $(DESTDIR)$(infodir)
214	@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
215	@$(POST_INSTALL)
216	@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
217
218uninstall-info:
219	$(PRE_UNINSTALL)
220	@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
221	$(NORMAL_UNINSTALL)
222	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
223
224dist-info: $(INFO_DEPS)
225	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
226
227mostlyclean-aminfo:
228	-rm -f make.aux make.cp make.cps make.dvi make.fn make.fns make.ky \
229	  make.kys make.ps make.log make.pg make.toc make.tp make.tps \
230	  make.vr make.vrs make.op make.tr make.cv make.cn
231
232clean-aminfo:
233
234distclean-aminfo:
235
236maintainer-clean-aminfo:
237	for i in $(INFO_DEPS) make.i; do rm -f `eval echo $$i*`; done
238
239install-man1:
240	$(mkinstalldirs) $(DESTDIR)$(man1dir)
241	@list='$(man1_MANS)'; \
242	l2='$(man_MANS)'; for i in $$l2; do \
243	  case "$$i" in \
244	    *.1*) list="$$list $$i" ;; \
245	  esac; \
246	done; \
247	for i in $$list; do \
248	  if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
249	  else file=$$i; fi; \
250	  ext=`echo $$i | sed -e 's/^.*\\.//'`; \
251	  inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
252	  inst=`echo $$inst | sed '$(transform)'`.$$ext; \
253	  echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
254	  $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
255	done
256
257uninstall-man1:
258	@list='$(man1_MANS)'; \
259	l2='$(man_MANS)'; for i in $$l2; do \
260	  case "$$i" in \
261	    *.1*) list="$$list $$i" ;; \
262	  esac; \
263	done; \
264	for i in $$list; do \
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 " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
269	  rm -f $(DESTDIR)$(man1dir)/$$inst; \
270	done
271install-man: $(MANS)
272	@$(NORMAL_INSTALL)
273	$(MAKE) install-man1
274uninstall-man:
275	@$(NORMAL_UNINSTALL)
276	$(MAKE) uninstall-man1
277
278# Assume that the only thing to do in glob is to build libglob.a,
279# but do a sanity check: if $SUBDIRS will ever have more than
280# a single directory, yell bloody murder.
281all-recursive:
282ifeq ($(words $(SUBDIRS)), 1)
283	@command.com /c if not exist glob\\nul md glob
284	@echo Making all in $(SUBDIRS)
285	$(MAKE) -C $(SUBDIRS) -f ../Makefile INCLUDES='-I$(srcdir) -I$(srcdir)/glob' DEFS='-I.. -I$(srcdir)' VPATH=$(srcdir)/glob libglob.a
286else
287	@echo FATAL: There is more than one directory in "($(SUBDIRS))"
288	@$(EXIT_FAIL)
289endif
290
291$(SUBDIRS):
292	command.com /c md $@
293
294libglob.a: $(libglob_a_OBJECTS)
295	command.com /c if exist libglob.a del libglob.a
296	$(AR) cru libglob.a $(libglob_a_OBJECTS) $(libglob_a_LIBADD)
297	$(RANLIB) libglob.a
298
299mostlyclean-recursive clean-recursive distclean-recursive \
300maintainer-clean-recursive check-recursive:
301ifeq ($(words $(SUBDIRS)), 1)
302	@echo Making $(shell echo $@ | sed s/-recursive//) in $(SUBDIRS)
303	$(MAKE) -C $(SUBDIRS) -f ../Makefile $(shell echo $@ | sed s/-recursive//)-am
304else
305	@echo FATAL: There is more than one directory in "($(SUBDIRS))"
306	@$(EXIT_FAIL)
307endif
308
309tags-in-glob: $(libglob_a_SOURCES)
310	etags $(addprefix $(srcdir)/,$^) -o ./glob/TAGS
311
312tags-recursive:
313ifeq ($(words $(SUBDIRS)), 1)
314	$(MAKE) tags-in-glob
315else
316	@echo FATAL: There is more than one directory in "($(SUBDIRS))"
317	@$(EXIT_FAIL)
318endif
319
320tags: TAGS
321
322ID: $(HEADERS) $(SOURCES)
323	mkid $(srcdir)/$(SOURCES) $(srcdir)/$(libglob_a_SOURCES) ./config.h $(HEADERS)
324
325TAGS: tags-recursive $(HEADERS) $(srcdir)/$(SOURCES) config.h $(TAGS_DEPENDENCIES)
326	etags -i ./glob/TAGS $(ETAGS_ARGS) $(srcdir)/$(SOURCES) ./config.h $(HEADERS)
327
328mostlyclean-tags:
329
330clean-tags:
331
332distclean-tags:
333	-rm -f TAGS ID
334
335maintainer-clean-tags:
336
337distdir = $(PACKAGE)-$(VERSION)
338top_distdir = $(distdir)
339
340# This target untars the dist file and tries a VPATH configuration.  Then
341# it guarantees that the distribution is self-contained by making another
342# tarfile.
343distcheck: dist
344	rm -rf $(distdir)
345	GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
346	mkdir $(distdir)/=build
347	mkdir $(distdir)/=inst
348	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
349	rm -rf $(distdir)
350	@echo "========================";  echo "$(distdir).tar.gz is ready for distribution";  echo "========================"
351dist: distdir
352	-chmod -R a+r $(distdir)
353	GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
354	rm -rf $(distdir)
355dist-all: distdir
356	-chmod -R a+r $(distdir)
357	GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
358	rm -rf $(distdir)
359distdir: $(DISTFILES)
360	rm -rf $(distdir)
361	mkdir $(distdir)
362	-chmod 777 $(distdir)
363	@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
364	$(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info
365	$(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook
366
367info: $(INFO_DEPS) info-recursive
368dvi: $(DVIS) dvi-recursive
369check: all-am check-recursive check-local
370	@:
371installcheck: installcheck-recursive
372all-recursive-am: config.h
373	$(MAKE) all-recursive
374
375all-am: Makefile $(INFO_DEPS) $(PROGRAMS) config.h
376
377install-exec-am: install-binPROGRAMS
378
379install-data-am: install-info-am
380
381uninstall-am: uninstall-binPROGRAMS uninstall-info
382
383install-exec: install-exec-recursive install-exec-am
384	@$(NORMAL_INSTALL)
385
386install-data: install-data-recursive install-data-am
387	@$(NORMAL_INSTALL)
388
389install-recursive uninstall-recursive:
390	@:
391
392install: install-recursive install-exec-am install-data-am
393	@:
394
395uninstall: uninstall-recursive uninstall-am
396
397all: all-recursive-am all-am
398
399install-strip:
400	$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
401installdirs: installdirs-recursive
402	$(mkinstalldirs)  $(bindir) $(infodir)
403
404
405mostlyclean-generic:
406	-test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
407
408clean-generic:
409	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
410
411distclean-generic:
412	-rm -f Makefile $(DISTCLEANFILES)
413	-rm -f config.cache config.log stamp-h stamp-h[0-9]*
414	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
415
416maintainer-clean-generic:
417	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
418	-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
419mostlyclean-am:  mostlyclean-hdr mostlyclean-binPROGRAMS  mostlyclean-compile mostlyclean-aminfo mostlyclean-tags  mostlyclean-generic
420
421clean-am:  clean-hdr clean-binPROGRAMS clean-compile clean-aminfo  clean-tags clean-generic mostlyclean-am
422
423distclean-am:  distclean-hdr distclean-binPROGRAMS distclean-compile  distclean-aminfo distclean-tags distclean-generic  clean-am
424
425maintainer-clean-am:  maintainer-clean-hdr maintainer-clean-binPROGRAMS  maintainer-clean-compile maintainer-clean-aminfo  maintainer-clean-tags maintainer-clean-generic  distclean-am
426
427mostlyclean:  mostlyclean-recursive mostlyclean-am
428
429clean: clean-noinstLIBRARIES clean-recursive clean-am
430
431distclean:  distclean-recursive distclean-am
432	rm -f config.status
433
434maintainer-clean:  maintainer-clean-recursive maintainer-clean-am
435	@echo "This command is intended for maintainers to use;"
436	@echo "it deletes files that may require special tools to rebuild."
437	rm -f config.status
438
439.PHONY: default mostlyclean-hdr distclean-hdr clean-hdr \
440maintainer-clean-hdr mostlyclean-binPROGRAMS distclean-binPROGRAMS \
441clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
442install-binPROGRAMS mostlyclean-compile distclean-compile clean-compile \
443maintainer-clean-compile install-info-am uninstall-info \
444mostlyclean-aminfo distclean-aminfo clean-aminfo \
445maintainer-clean-aminfo install-data-recursive uninstall-data-recursive \
446install-exec-recursive uninstall-exec-recursive installdirs-recursive \
447uninstalldirs-recursive all-recursive check-recursive check-am \
448installcheck-recursive info-recursive dvi-recursive \
449mostlyclean-recursive distclean-recursive clean-recursive \
450maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
451distclean-tags clean-tags maintainer-clean-tags distdir \
452mostlyclean-depend distclean-depend clean-depend \
453maintainer-clean-depend info dvi check-local installcheck \
454all-recursive-am all-am install-exec-am install-data-am uninstall-am \
455install-exec install-data install uninstall all installdirs \
456mostlyclean-generic distclean-generic clean-generic \
457maintainer-clean-generic clean mostlyclean distclean maintainer-clean
458
459
460# --------------- Local DIST Section
461
462# Install the w32 subdirectory
463#
464dist-hook:
465	(cd $(srcdir); \
466	 w32=`find w32 -follow \( -name CVS -prune \) -o -type f -print`; \
467	 tar chf - $$w32) \
468	| (cd $(distdir); tar xfBp -)
469
470# --------------- Local CHECK Section
471
472# Note: check-loadavg is NOT a prerequisite of check-local, since
473# there's no uptime utility, and the test it does doesn't make sense
474# on MSDOS anyway.
475check-local: check-shell check-regression
476	@banner=" Regression PASSED: GNU Make $(VERSION) ($(MAKE_HOST)) built with $(CC) "; \
477	dashes=`echo "$$banner" | sed s/./=/g`; \
478	echo; \
479	echo "$$dashes"; \
480	echo "$$banner"; \
481	echo "$$dashes"; \
482	echo
483
484.PHONY: check-loadavg check-shell check-regression
485
486# > check-shell
487#
488# check-shell is designed to fail if they don't have a Unixy shell
489# installed.  The test suite requires such a shell.
490check-shell:
491	@echo If Make says Error -1, you do not have Unix-style shell installed
492	@foo=bar.exe :
493
494# > check-loadavg
495#
496loadavg: loadavg.c config.h
497	@rm -f loadavg
498	$(LINK) -DTEST $(make_LDFLAGS) loadavg.c $(LIBS)
499# We copy getloadavg.c into a different file rather than compiling it
500# directly because some compilers clobber getloadavg.o in the process.
501loadavg.c: getloadavg.c
502	ln $(srcdir)/getloadavg.c loadavg.c || \
503	cp $(srcdir)/getloadavg.c loadavg.c
504check-loadavg: loadavg
505	@echo The system uptime program believes the load average to be:
506	-uptime
507	@echo The GNU load average checking code believes:
508	-./loadavg
509
510# > check-regression
511#
512# Look for the make test suite, and run it if found.  Look in MAKE_TEST if
513# specified, or else in the srcdir or the distdir, their parents, and _their_
514# parents.
515#
516check-regression:
517	@if test -f "$(srcdir)/tests/run_make_tests"; then \
518	  if $(PERL) -v >/dev/null 2>&1; then \
519	    case `cd $(srcdir); pwd` in `pwd`) : ;; \
520	      *) test -d tests || mkdir tests; \
521		 for f in run_make_tests run_make_tests.pl test_driver.pl scripts; do \
522		   rm -rf tests/$$f; cp -pr $(srcdir)/tests/$$f tests; \
523		 done ;; \
524	    esac; \
525	    echo "cd tests && $(PERL) ./run_make_tests.pl -make ../make.exe $(MAKETESTFLAGS)"; \
526	    cd tests && $(PERL) ./run_make_tests.pl -make ../make.exe $(MAKETESTFLAGS); \
527	  else \
528	    echo "Can't find a working Perl ($(PERL)); the test suite requires Perl."; \
529	  fi; \
530	 else \
531	  echo "Can't find the GNU Make test suite ($(srcdir)/tests)."; \
532	 fi
533
534# --------------- Maintainer's Section
535
536# Note this requires GNU make.  Not to worry, since it will only be included
537# in the Makefile if we're in the maintainer's environment.
538#include $(srcdir)/maintMakefile
539
540# Tell versions [3.59,3.63) of GNU make to not export all variables.
541# Otherwise a system limit (for SysV at least) may be exceeded.
542.NOEXPORT:
543
544# --------------- DEPENDENCIES
545
546# --------------- DEPENDENCIES
547#
548
549# .deps/alloca.Po
550# dummy
551
552# .deps/ar.Po
553ar.o ar.o: ar.c make.h config.h \
554  getopt.h \
555  gettext.h filedef.h hash.h dep.h \
556
557# .deps/arscan.Po
558arscan.o arscan.o: arscan.c make.h config.h \
559  getopt.h \
560  gettext.h \
561
562# .deps/commands.Po
563commands.o commands.o: commands.c make.h config.h \
564  getopt.h \
565  gettext.h dep.h filedef.h hash.h variable.h \
566  job.h commands.h
567
568# .deps/default.Po
569default.o default.o: default.c make.h config.h \
570  getopt.h \
571  gettext.h filedef.h hash.h variable.h rule.h \
572  dep.h job.h commands.h
573
574# .deps/dir.Po
575dir.o dir.o: dir.c make.h config.h \
576  getopt.h \
577  gettext.h hash.h \
578
579# .deps/expand.Po
580expand.o expand.o: expand.c make.h config.h \
581  getopt.h \
582  gettext.h filedef.h hash.h \
583  job.h commands.h \
584  variable.h rule.h
585
586# .deps/file.Po
587file.o file.o: file.c make.h config.h \
588  getopt.h \
589  gettext.h dep.h filedef.h \
590  hash.h job.h commands.h \
591  variable.h debug.h
592
593# .deps/function.Po
594function.o function.o: function.c make.h config.h \
595  getopt.h \
596  gettext.h filedef.h hash.h variable.h dep.h \
597  job.h commands.h debug.h
598
599# .deps/getloadavg.Po
600# dummy
601
602# .deps/getopt.Po
603getopt.o getopt.o: getopt.c config.h \
604
605# .deps/getopt1.Po
606getopt1.o getopt1.o: getopt1.c config.h getopt.h \
607
608# .deps/hash.Po
609hash.o hash.o: hash.c make.h config.h \
610  getopt.h \
611  gettext.h hash.h
612
613# .deps/implicit.Po
614implicit.o implicit.o: implicit.c make.h config.h \
615  getopt.h \
616  gettext.h filedef.h hash.h rule.h dep.h debug.h \
617  variable.h job.h \
618  commands.h
619
620# .deps/job.Po
621job.o job.o: job.c make.h config.h \
622  getopt.h \
623  gettext.h job.h \
624  debug.h filedef.h hash.h \
625  commands.h variable.h \
626
627# .deps/loadavg-getloadavg.Po
628loadavg-getloadavg.o loadavg-getloadavg.o: getloadavg.c config.h \
629  make.h \
630  getopt.h \
631  gettext.h \
632
633# .deps/main.Po
634main.o main.o: main.c make.h config.h \
635  getopt.h \
636  gettext.h dep.h filedef.h hash.h variable.h \
637  job.h commands.h rule.h \
638  debug.h getopt.h \
639
640# .deps/misc.Po
641misc.o misc.o: misc.c make.h config.h \
642  getopt.h \
643  gettext.h dep.h debug.h
644
645# .deps/read.Po
646read.o read.o: read.c make.h config.h \
647  getopt.h \
648  gettext.h \
649  dep.h filedef.h hash.h job.h \
650  commands.h variable.h rule.h debug.h \
651
652# .deps/remake.Po
653remake.o remake.o: remake.c make.h config.h \
654  getopt.h \
655  gettext.h filedef.h hash.h job.h \
656  commands.h dep.h \
657  variable.h debug.h
658
659# .deps/remote-cstms.Po
660# dummy
661
662# .deps/remote-stub.Po
663remote-stub.o remote-stub.o: remote-stub.c make.h config.h \
664  getopt.h \
665  gettext.h filedef.h hash.h job.h \
666  commands.h
667
668# .deps/rule.Po
669rule.o rule.o: rule.c make.h config.h \
670  getopt.h \
671  gettext.h dep.h filedef.h hash.h job.h \
672  commands.h variable.h \
673  rule.h
674
675# .deps/signame.Po
676signame.o signame.o: signame.c make.h config.h \
677  getopt.h \
678  gettext.h
679
680# .deps/strcache.Po
681strcache.o strcache.o: strcache.c make.h config.h \
682  getopt.h \
683  gettext.h hash.h
684
685# .deps/variable.Po
686variable.o variable.o: variable.c make.h config.h \
687  getopt.h \
688  gettext.h dep.h filedef.h \
689  hash.h job.h commands.h \
690  variable.h rule.h
691
692# .deps/version.Po
693version.o version.o: version.c config.h
694
695# .deps/vmsjobs.Po
696# dummy
697
698# .deps/vpath.Po
699vpath.o vpath.o: vpath.c make.h config.h \
700  getopt.h \
701  gettext.h filedef.h hash.h variable.h
702