1 # -*-Makefile-*-, or close enough
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 \
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 \
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.
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; \
42 *) testdir="$(MAKE_TEST)" ;; \
45 "") echo "Couldn't find make-test-* test suite."; exit 0;; \
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
54 w32=`find w32 -follow \( -name CVS -prune \) -o -type f -print`; \
56 | (cd $(distdir); tar xfBp -)
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