diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | Makefile | 7 |
2 files changed, 12 insertions, 2 deletions
@@ -1,6 +1,11 @@ 2009-11-14 Kaz Kylheku <kkylheku@gmail.com> - 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 <kkylheku@gmail.com> + + * configure (cc): Compute variable properly. 2009-11-14 Kaz Kylheku <kkylheku@gmail.com> @@ -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) |