commit ca57b304fd16a00b5ccf4fb7a703fc4d6eb0296b
parent 66020afe4e4e2e38c08840c0f453eb224869e7ea
Author: Drew DeVault <sir@cmpwn.com>
Date: Sat, 2 Jan 2021 17:37:40 -0500
make: add more .PHONY targets, fix libhart.a
Diffstat:
3 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/rt/Makefile b/rt/Makefile
@@ -3,7 +3,7 @@ libhart_srcs+=\
rt/compile.ha \
rt/rtmain.ha
-libhart.a: harec $(libhart_srcs) $(libhart_objs)
+libhart.a: harec $(libhart_srcs) $(libhart_objs) $(rtstart)
@printf 'HAREC\t$@\n'
@./harec -N rt -o $@.ssa $(libhart_srcs)
@qbe -o $@.s $@.ssa
@@ -13,3 +13,5 @@ libhart.a: harec $(libhart_srcs) $(libhart_objs)
clean-rt:
@rm -f libhart.a $(libhart_objs) $(rtstart)
+
+.PHONY: rt clean-rt
diff --git a/tests/Makefile b/tests/Makefile
@@ -1,2 +1,4 @@
check:
@./tests/run
+
+.PHONY: check clean-tests
diff --git a/tests/configure b/tests/configure
@@ -22,6 +22,7 @@ check: tests/$t
clean-test-$t:
@rm -f tests/$t
+.PHONY: clean-test-$t
clean-tests: clean-test-$t
EOF