From 0b6c09e067981c232cef09f0d82fb9b4a9864553 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 29 Dec 2021 18:57:21 -0800 Subject: 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. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3