From 4df95874d214ddda778997d4edac10b762b78787 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 14 Nov 2009 18:25:53 -0800 Subject: * Makefile (depend): Marked phony and $(PROG) prerequisite dropped. (clean, distclean, tests, install): Phony targets marked phony. --- ChangeLog | 7 ++++++- Makefile | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3d3c588a..24d73176 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,11 @@ 2009-11-14 Kaz Kylheku - configure (cc): Compute variable properly. + * Makefile (depend): Marked phony and $(PROG) prerequisite dropped. + (clean, distclean, tests, install): Phony targets marked phony. + +2009-11-14 Kaz Kylheku + + * configure (cc): Compute variable properly. 2009-11-14 Kaz Kylheku diff --git a/Makefile b/Makefile index cb1ad360..03f1e266 100644 --- a/Makefile +++ b/Makefile @@ -48,19 +48,23 @@ lex.yy.c: parser.l y.tab.c y.tab.h: parser.y if $(YACC) -v -d $< ; then true ; else rm $@ ; false ; fi +.PHONY: clean clean: rm -f $(PROG) $(OBJS) \ y.tab.c lex.yy.c y.tab.h y.output $(TESTS:.ok=.out) +.PHONY: distclean distclean: clean rm -f config.make config.log -depend: $(PROG) +.PHONY: depend +depend: $(PROG) $(top_srcdir)/depend.txr > $(top_srcdir)/dep.mk TESTS := $(patsubst $(top_srcdir)/%.txr,./%.ok,\ $(shell find $(top_srcdir)/tests -name '*.txr' | sort)) +.PHONY: tests tests: $(PROG) $(TESTS) @echo "** tests passed!" @@ -82,6 +86,7 @@ tests/002/%: TXR_SCRIPT_ON_CMDLINE := y %.expected: %.txr $(PROG) $(TXR_OPTS) $^ $(TXR_ARGS) > $@ +.PHONY: install install: $(PROG) mkdir -p $(install_prefix)$(bindir) mkdir -p $(install_prefix)$(datadir) -- cgit v1.2.3