summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
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)