* texinfo.tex (\value): handle active _ or - in argument (happens
[make.git] / Makefile.DOS.template
blobb8d44ee8530936dfd526447fc4d156c784082889
1 # -*-Makefile-*- template for DJGPP
2 # Makefile.in generated automatically by automake 1.2 from Makefile.am
4 # Copyright (C) 1994, 1995, 1996, 1997 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.
8 # -*-Makefile-*-, or close enough
11 SHELL = /bin/sh
13 srcdir = .
14 VPATH = $(srcdir)
15 # $DJDIR is defined automatically by DJGPP to point
16 # to the root of the DJGPP installation tree.
17 prefix = ${DJDIR}
18 exec_prefix = ${prefix}
20 bindir = ${exec_prefix}/bin
21 datadir = ${prefix}/share
22 libdir = ${prefix}/lib
23 infodir = ${prefix}/info
24 # DJGPP doesn't have separate man tree, use info instead.
25 mandir = ${prefix}/info
26 includedir = ${prefix}/include
27 oldincludedir = c:/djgpp/include
29 pkgdatadir = $(datadir)/make
30 pkglibdir = $(libdir)/make
31 pkgincludedir = $(includedir)/make
33 INSTALL = ${bindir}/ginstall -c
34 INSTALL_PROGRAM = ${bindir}/ginstall -c
35 INSTALL_DATA = ${bindir}/ginstall -c -m 644
36 INSTALL_SCRIPT = ${bindir}/ginstall -c
37 transform = s,x,x,
39 # This will fail even if they don't have a Unix-like shell (stock DOS
40 # shell doesn't know about `false').  The only difference is that they
41 # get "Error -1" instead of "Error 1".
42 EXIT_FAIL = false
44 NORMAL_INSTALL = :
45 PRE_INSTALL = :
46 POST_INSTALL = :
47 NORMAL_UNINSTALL = :
48 PRE_UNINSTALL = :
49 POST_UNINSTALL = :
50 AR = ar
51 CC = gcc
52 CPP = gcc -E
53 LIBOBJS =
54 MAKEINFO = ${bindir}/makeinfo
55 PACKAGE = make
56 RANLIB = ranlib
57 REMOTE = stub
58 VERSION = %VERSION%
60 AUTOMAKE_OPTIONS = 1.2
62 bin_PROGRAMS =  %PROGRAMS%
64 make_SOURCES =  %SOURCES%
65 # This should include the glob/ prefix
66 libglob_a_SOURCES =     %GLOB_SOURCES%
67 make_LDADD =      glob/libglob.a
69 info_TEXINFOS = make.texinfo
70 man_MANS =      make.1
72 INCLUDES =      -I$(srcdir)/glob -DLIBDIR=\"c:/djgpp/lib\" -DINCLUDEDIR=\"c:/djgpp/include\"
74 BUILT_SOURCES = README build.sh.in
76 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
78 SUBDIRS =       glob
79 mkinstalldirs = ${bindir}/gmkdir -p
80 CONFIG_HEADER = config.h
81 CONFIG_CLEAN_FILES =  build.sh
82 PROGRAMS =  $(bin_PROGRAMS)
85 DEFS =  -I. -I$(srcdir) -I.
86 CPPFLAGS = -DHAVE_CONFIG_H
87 LDFLAGS =
88 LIBS =
89 make_OBJECTS =  %OBJECTS%
90 make_DEPENDENCIES =    glob/libglob.a
91 make_LDFLAGS =
92 libglob_a_LIBADD =
93 libglob_a_OBJECTS =  %GLOB_OBJECTS%
94 noinst_LIBRARIES =      glob/libglob.a
95 CFLAGS = -O2 -g
96 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
97 LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
98 TEXI2DVI = texi2dvi
99 TEXINFO_TEX = $(srcdir)/texinfo.tex
100 INFO_DEPS = make.info
101 DVIS = make.dvi
102 TEXINFOS = make.texinfo
103 man1dir = $(mandir)/man1
104 MANS = $(man_MANS)
106 NROFF = nroff
107 DIST_COMMON =  README 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 install-sh missing mkinstalldirs  stamp-h.in texinfo.tex
110 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
112 TAR = gtar
113 GZIP = --best
114 SOURCES = $(make_SOURCES)
115 OBJECTS = $(make_OBJECTS)
116 HEADERS = $(wildcard $(srcdir)/*.h)
118 default: all
120 .SUFFIXES:
121 .SUFFIXES: .c .dvi .info .o .ps .texi .texinfo
123 distclean-hdr:
124         -rm -f config.h
126 maintainer-clean-hdr:
128 mostlyclean-binPROGRAMS:
130 clean-binPROGRAMS:
131         -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
133 distclean-binPROGRAMS:
135 maintainer-clean-binPROGRAMS:
137 install-binPROGRAMS: $(bin_PROGRAMS)
138         @$(NORMAL_INSTALL)
139         $(mkinstalldirs) $(DESTDIR)$(bindir)
140         @list='$(bin_PROGRAMS)'; for p in $$list; do    if test -f $$p; then      echo "  $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p | sed '$(transform)'`";       $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p | sed '$(transform)'`;    else :; fi;  done
142 uninstall-binPROGRAMS:
143         $(NORMAL_UNINSTALL)
144         list='$(bin_PROGRAMS)'; for p in $$list; do    rm -f $(bindir)/`echo $$p|sed '$(transform)'`;  done
146 .c.o:
147         $(COMPILE) -c $<
149 clean-noinstLIBRARIES:
150         -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
152 mostlyclean-compile:
153         -rm -f *.o *.exe make.new core
155 clean-compile:
157 distclean-compile:
158         -rm -f *.tab.c
160 maintainer-clean-compile:
162 make: $(make_OBJECTS) $(make_DEPENDENCIES)
163         @command.com /c if exist make del make
164         @command.com /c if exist make.exe del make.exe
165         $(LINK) $(make_LDFLAGS) $(make_OBJECTS) $(make_LDADD) $(LIBS)
167 make.info: make.texinfo
168 make.dvi: make.texinfo
171 DVIPS = dvips
173 .texi.info:
174         $(MAKEINFO) $(srcdir)/$< -o ./$@
176 .texi.dvi:
177         TEXINPUTS="$(srcdir);$$TEXINPUTS"    MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
179 .texi:
180         $(MAKEINFO) $(srcdir)/$< -o ./$@
182 .texinfo.info:
183         $(MAKEINFO) $(srcdir)/$< -o ./$@
185 .texinfo:
186         $(MAKEINFO) $(srcdir)/$< -o ./$@
188 .texinfo.dvi:
189         TEXINPUTS="$(srcdir);$$TEXINPUTS"    MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
191 .dvi.ps:
192         $(DVIPS) $< -o $@
194 install-info-am: $(INFO_DEPS)
195         @$(NORMAL_INSTALL)
196         $(mkinstalldirs) $(DESTDIR)$(infodir)
197         @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
198         @$(POST_INSTALL)
199         @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
201 uninstall-info:
202         $(PRE_UNINSTALL)
203         @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
204         $(NORMAL_UNINSTALL)
205         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
207 dist-info: $(INFO_DEPS)
208         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
210 mostlyclean-aminfo:
211         rm -f make.aux make.cp make.cps make.dvi make.fn make.fns make.ky    make.kys make.ps make.log make.pg make.toc make.tp make.tps make.vr make.vrs    make.op make.tr make.cv make.cn
213 clean-aminfo:
215 distclean-aminfo:
217 maintainer-clean-aminfo:
218         for i in $(INFO_DEPS) make.i; do rm -f `eval echo $$i*`; done
220 install-man1:
221         $(mkinstalldirs) $(DESTDIR)$(man1dir)
222         @list='$(man1_MANS)'; \
223         l2='$(man_MANS)'; for i in $$l2; do \
224           case "$$i" in \
225             *.1*) list="$$list $$i" ;; \
226           esac; \
227         done; \
228         for i in $$list; do \
229           if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
230           else file=$$i; fi; \
231           ext=`echo $$i | sed -e 's/^.*\\.//'`; \
232           inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
233           inst=`echo $$inst | sed '$(transform)'`.$$ext; \
234           echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
235           $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
236         done
238 uninstall-man1:
239         @list='$(man1_MANS)'; \
240         l2='$(man_MANS)'; for i in $$l2; do \
241           case "$$i" in \
242             *.1*) list="$$list $$i" ;; \
243           esac; \
244         done; \
245         for i in $$list; do \
246           ext=`echo $$i | sed -e 's/^.*\\.//'`; \
247           inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
248           inst=`echo $$inst | sed '$(transform)'`.$$ext; \
249           echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
250           rm -f $(DESTDIR)$(man1dir)/$$inst; \
251         done
252 install-man: $(MANS)
253         @$(NORMAL_INSTALL)
254         $(MAKE) install-man1
255 uninstall-man:
256         @$(NORMAL_UNINSTALL)
257         $(MAKE) uninstall-man1
259 # Assume that the only thing to do in glob is to build libglob.a,
260 # but do a sanity check: if $SUBDIRS will ever have more than
261 # a single directory, yell bloody murder.
262 all-recursive:
263 ifeq ($(words $(SUBDIRS)), 1)
264         @command.com /c if not exist glob\\nul md glob
265         @echo Making all in $(SUBDIRS)
266         $(MAKE) -C $(SUBDIRS) -f ../Makefile INCLUDES='-I$(srcdir) -I$(srcdir)/glob' DEFS='-I.. -I$(srcdir)' VPATH=$(srcdir)/glob libglob.a
267 else
268         @echo FATAL: There is more than one directory in "($(SUBDIRS))"
269         @$(EXIT_FAIL)
270 endif
272 $(SUBDIRS):
273         command.com /c md $@
275 libglob.a: $(libglob_a_OBJECTS)
276         command.com /c if exist libglob.a del libglob.a
277         $(AR) cru libglob.a $(libglob_a_OBJECTS) $(libglob_a_LIBADD)
278         $(RANLIB) libglob.a
280 mostlyclean-recursive clean-recursive distclean-recursive  maintainer-clean-recursive:
281 ifeq ($(words $(SUBDIRS)), 1)
282         @echo Making $(shell echo $@ | sed s/-recursive//) in $(SUBDIRS)
283         $(MAKE) -C $(SUBDIRS) -f ../Makefile $(shell echo $@ | sed s/-recursive//)-am
284 else
285         @echo FATAL: There is more than one directory in "($(SUBDIRS))"
286         @$(EXIT_FAIL)
287 endif
289 tags-in-glob: $(libglob_a_SOURCES)
290         etags $(addprefix $(srcdir)/,$^) -o ./glob/TAGS
292 tags-recursive:
293 ifeq ($(words $(SUBDIRS)), 1)
294         $(MAKE) tags-in-glob
295 else
296         @echo FATAL: There is more than one directory in "($(SUBDIRS))"
297         @$(EXIT_FAIL)
298 endif
300 tags: TAGS
302 ID: $(HEADERS) $(SOURCES)
303         mkid $(srcdir)/$(SOURCES) $(srcdir)/$(libglob_a_SOURCES) ./config.h $(HEADERS)
305 TAGS: tags-recursive $(HEADERS) $(srcdir)/$(SOURCES) config.h $(TAGS_DEPENDENCIES)
306         etags -i ./glob/TAGS $(ETAGS_ARGS) $(srcdir)/$(SOURCES) ./config.h $(HEADERS)
308 mostlyclean-tags:
310 clean-tags:
312 distclean-tags:
313         -rm -f TAGS ID
315 maintainer-clean-tags:
317 distdir = $(PACKAGE)-$(VERSION)
318 top_distdir = $(distdir)
320 # This target untars the dist file and tries a VPATH configuration.  Then
321 # it guarantees that the distribution is self-contained by making another
322 # tarfile.
323 distcheck: dist
324         rm -rf $(distdir)
325         GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
326         mkdir $(distdir)/=build
327         mkdir $(distdir)/=inst
328         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
329         rm -rf $(distdir)
330         @echo "========================";  echo "$(distdir).tar.gz is ready for distribution";  echo "========================"
331 dist: distdir
332         -chmod -R a+r $(distdir)
333         GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
334         rm -rf $(distdir)
335 dist-all: distdir
336         -chmod -R a+r $(distdir)
337         GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
338         rm -rf $(distdir)
339 distdir: $(DISTFILES)
340         rm -rf $(distdir)
341         mkdir $(distdir)
342         -chmod 777 $(distdir)
343         @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
344         $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info
345         $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook
347 info: $(INFO_DEPS) info-recursive
348 dvi: $(DVIS) dvi-recursive
349 check: all-am
350         $(MAKE) check-recursive check-local
351 installcheck: installcheck-recursive
352 all-recursive-am: config.h
353         $(MAKE) all-recursive
355 all-am: Makefile $(INFO_DEPS) $(PROGRAMS) config.h
357 install-exec-am: install-binPROGRAMS
359 install-data-am: install-info-am
361 uninstall-am: uninstall-binPROGRAMS uninstall-info
363 install-exec: install-exec-recursive install-exec-am
364         @$(NORMAL_INSTALL)
366 install-data: install-data-recursive install-data-am
367         @$(NORMAL_INSTALL)
369 install: install-recursive install-exec-am install-data-am
370         @:
372 uninstall: uninstall-recursive uninstall-am
374 all: all-recursive-am all-am
376 install-strip:
377         $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
378 installdirs: installdirs-recursive
379         $(mkinstalldirs)  $(bindir) $(infodir)
382 mostlyclean-generic:
383         -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
385 clean-generic:
386         -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
388 distclean-generic:
389         -rm -f Makefile $(DISTCLEANFILES)
390         -rm -f config.cache config.log stamp-h stamp-h[0-9]*
391         -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
393 maintainer-clean-generic:
394         -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
395         -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
396 mostlyclean-am:  mostlyclean-hdr mostlyclean-binPROGRAMS  mostlyclean-compile mostlyclean-aminfo mostlyclean-tags  mostlyclean-generic
398 clean-am:  clean-hdr clean-binPROGRAMS clean-compile clean-aminfo  clean-tags clean-generic mostlyclean-am
400 distclean-am:  distclean-hdr distclean-binPROGRAMS distclean-compile  distclean-aminfo distclean-tags distclean-generic  clean-am
402 maintainer-clean-am:  maintainer-clean-hdr maintainer-clean-binPROGRAMS  maintainer-clean-compile maintainer-clean-aminfo  maintainer-clean-tags maintainer-clean-generic  distclean-am
404 mostlyclean:  mostlyclean-recursive mostlyclean-am
406 clean: clean-noinstLIBRARIES clean-recursive clean-am
408 distclean:  distclean-recursive distclean-am
409         rm -f config.status
411 maintainer-clean:  maintainer-clean-recursive maintainer-clean-am
412         @echo "This command is intended for maintainers to use;"
413         @echo "it deletes files that may require special tools to rebuild."
414         rm -f config.status
416 .PHONY: default mostlyclean-hdr distclean-hdr clean-hdr \
417 maintainer-clean-hdr mostlyclean-binPROGRAMS distclean-binPROGRAMS \
418 clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
419 install-binPROGRAMS mostlyclean-compile distclean-compile clean-compile \
420 maintainer-clean-compile install-info-am uninstall-info \
421 mostlyclean-aminfo distclean-aminfo clean-aminfo \
422 maintainer-clean-aminfo install-data-recursive uninstall-data-recursive \
423 install-exec-recursive uninstall-exec-recursive installdirs-recursive \
424 uninstalldirs-recursive all-recursive check-recursive \
425 installcheck-recursive info-recursive dvi-recursive \
426 mostlyclean-recursive distclean-recursive clean-recursive \
427 maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
428 distclean-tags clean-tags maintainer-clean-tags distdir \
429 mostlyclean-depend distclean-depend clean-depend \
430 maintainer-clean-depend info dvi check-local installcheck \
431 all-recursive-am all-am install-exec-am install-data-am uninstall-am \
432 install-exec install-data install uninstall all installdirs \
433 mostlyclean-generic distclean-generic clean-generic \
434 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
437 # --------------- Local DIST Section
439 # Install the w32 subdirectory
441 dist-hook:
442         (cd $(srcdir); \
443          w32=`find w32 -follow \( -name CVS -prune \) -o -type f -print`; \
444          tar chf - $$w32) \
445         | (cd $(distdir); tar xfBp -)
447 # --------------- Local CHECK Section
449 check-local: check-loadavg check-regression
450 .PHONY: check-loadavg check-regression
452 # > check-loadavg
454 loadavg: loadavg.c config.h
455         @rm -f loadavg
456         $(LINK) -DTEST $(make_LDFLAGS) loadavg.c $(LIBS)
457 # We copy getloadavg.c into a different file rather than compiling it
458 # directly because some compilers clobber getloadavg.o in the process.
459 loadavg.c: getloadavg.c
460         ln $(srcdir)/getloadavg.c loadavg.c || \
461         cp $(srcdir)/getloadavg.c loadavg.c
462 check-loadavg: loadavg
463         @echo The system uptime program believes the load average to be:
464         -uptime
465         @echo The GNU load average checking code believes:
466         -./loadavg
468 # > check-regression
470 # Look for the make test suite, and run it if found.  Look in MAKE_TEST if
471 # specified, or else in the srcdir or the distdir, their parents, and _their_
472 # parents.
474 check-regression:
475         here=`pwd`; testdir=""; \
476           case "$(MAKE_TEST)" in "") \
477             for d1 in $$here $(srcdir); do \
478               for d2 in ../.. .. .; do \
479                 all=`echo $$d1/$$d2/make-test-[0-9]*/run_make_tests`; \
480                 case "$$all" in \
481                   "$$d1/$$d2/make-test-[0-9]*/run_make_tests") : ;; \
482                   *) try=`for x in $$all; do echo $$x; done | sort | tail -1`;\
483                      testdir=`dirname $$try` ;; esac; \
484             done; done ;; \
485             *) testdir="$(MAKE_TEST)" ;; \
486           esac; \
487           case "$$testdir" in \
488             "") echo "Couldn't find make-test-* test suite."; exit 0;; \
489           esac; \
490           echo "cd $$testdir && ./run_make_tests -make_path $$here/make"; \
491           cd $$testdir && ./run_make_tests -make_path $$here/make
493 # --------------- Maintainer's Section
495 # Note this requires GNU make.  Not to worry, since it will only be included
496 # in the Makefile if we're in the maintainer's environment.
497 #include $(srcdir)/maintMakefile
499 # Tell versions [3.59,3.63) of GNU make to not export all variables.
500 # Otherwise a system limit (for SysV at least) may be exceeded.
501 .NOEXPORT: