Last minute 3.75.91 changes.
[make.git] / Makefile.am
blob17e2acde91811da953327b5088035da2b1227f38
1 # -*-Makefile-*-, or close enough
3 AUTOMAKE_OPTIONS = 1.2
5 bin_PROGRAMS =  make
7 make_SOURCES =  main.c commands.c job.c dir.c file.c misc.c read.c remake.c \
8                 rule.c implicit.c default.c variable.c expand.c function.c \
9                 vpath.c version.c ar.c arscan.c remote-$(REMOTE).c \
10                 commands.h dep.h filedef.h job.h make.h rule.h variable.h \
11                 signame.c signame.h \
12                 getopt.c getopt1.c getopt.h
13 make_LDADD =    @LIBOBJS@ @ALLOCA@ glob/libglob.a
15 info_TEXINFOS = make.texinfo
17 INCLUDES =      -I$(srcdir)/glob -DLIBDIR=\"$(libdir)\" -DINCLUDEDIR=\"$(includedir)\"
19 BUILT_SOURCES = README build.sh.in
21 EXTRA_DIST =    make.man $(BUILT_SOURCES) remote-cstms.c \
22                 make-stds.texi texinfo.tex SCOPTIONS SMakefile \
23                 Makefile.ami README.Amiga config.ami amiga.c amiga.h \
24                 NMakefile README.DOS configh.dos configure.bat makefile.com \
25                 README.W32 build_w32.bat config.h.W32 subproc.bat make.lnk \
26                 config.h-vms makefile.vms readme.vms vmsdir.h vmsfunctions.c \
27                 vmsify.c
29 SUBDIRS =       glob
31 # Look for the make test suite, and run it if found.  Look in MAKE_TEST, or
32 # in the srcdir or the distdir, their parents, and their parents.
34 check-local:
35         @here=`pwd`; testdir=""; \
36           case "$(MAKE_TEST)" in "") \
37             for d1 in $$here $(srcdir); do \
38               for d2 in ../.. .. .; do \
39                 try=`ls -1 $$d1/$$d2/make-test-*/run_make_tests 2>/dev/null | tail -1`; \
40                 case "$$try" in "") : ;; *) testdir=`dirname $$try` ;; esac; \
41             done; done ;; \
42             *) testdir="$(MAKE_TEST)" ;; \
43           esac; \
44           case "$$testdir" in \
45             "") echo "Couldn't find make-test-* test suite."; exit 0;; \
46           esac; \
47           echo "cd $$testdir && ./run_make_tests -make_path $$here/make"; \
48           cd $$testdir && ./run_make_tests -make_path $$here/make
50 # Install the w32 subdirectory
52 dist-hook:
53         (cd $(srcdir); \
54          w32=`find w32 -follow \( -name CVS -prune \) -o -type f -print`; \
55          tar chf - $$w32) \
56         | (cd $(distdir); tar xfBp -)
58 if MAINT_MAKEFILE
59 # Note this requires GNU make.  Not to worry, since it will only be included
60 # in the Makefile if we're in the maintainer's environment.
61 include $(srcdir)/maintMakefile
62 endif