summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-12-29 18:57:21 -0800
committerKaz Kylheku <kaz@kylheku.com>2021-12-29 18:57:21 -0800
commit0b6c09e067981c232cef09f0d82fb9b4a9864553 (patch)
tree9a7d1f3c866f25928fef88ed6481f9538a10ba94
parentfe79d64ca0f94720280a6755af29ceb1e5420518 (diff)
downloadtxr-0b6c09e067981c232cef09f0d82fb9b4a9864553.tar.gz
txr-0b6c09e067981c232cef09f0d82fb9b4a9864553.tar.bz2
txr-0b6c09e067981c232cef09f0d82fb9b4a9864553.zip
Makefile: way to clean only C sources.
* Makefile (clean-c): New target, complementary to clean-tlo, to only clean the C object files, executables and related materials, without touching the .tlo files. (clean): Depend on clean-c; body entirely moved into clean-c.
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d8bc6797..d0354aa5 100644
--- a/Makefile
+++ b/Makefile
@@ -363,7 +363,9 @@ distclean:
else
rebuild: clean $(PROG)
-clean: conftest.clean clean-tlo
+clean: conftest.clean clean-c clean-tlo
+
+clean-c:
rm -f $(PROG)$(EXE) $(PROG)-dbg$(EXE) y.tab.c lex.yy.c y.tab.h y.output
rm -f y.tab.h.old
rm -f $(PROG)-win$(EXE) $(PROG)-win-dbg$(EXE) .build_id