summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-03-20 03:37:00 +0000
committerUlrich Drepper <drepper@redhat.com>1997-03-20 03:37:00 +0000
commit46139b3cfb9681cb12d8ac9e7021f9c3ca312980 (patch)
tree2ac8144f33b1fa037b4e3e402f3c372ea5090ff5 /Makerules
parentba182327421155e2377470d18038856b41b0ae1d (diff)
(depfiles, common-mostlyclean): Add $(test-srcs).
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makerules b/Makerules
index 6491af68e5..4151c2357b 100644
--- a/Makerules
+++ b/Makerules
@@ -399,7 +399,7 @@ endif
+depfiles := $(strip $(sources:.c=.d) \
$(patsubst %.o,%.d,$(filter %.o,$(extra-objs:.so=.o))) \
- $(addsuffix .d,$(others) $(tests)))
+ $(addsuffix .d,$(others) $(tests) $(test-srcs)))
+depfiles := $(addprefix $(objpfx),\
$(filter-out $(addsuffix .d,$(omit-deps)),\
$(+depfiles)))
@@ -835,9 +835,10 @@ mostlyclean: common-mostlyclean
# Remove the object files.
common-mostlyclean:
- -rm -f $(addprefix $(objpfx),$(tests) $(others) \
- $(addsuffix .o,$(tests) $(others)) \
- $(addsuffix .out,$(tests)))
+ -rm -f $(addprefix $(objpfx),$(tests) $(test-srcs) $(others) \
+ $(addsuffix .o,$(tests) $(test-srcs) \
+ $(others)) \
+ $(addsuffix .out,$(tests) $(test-srcs)))
-rm -f $(addprefix $(objpfx),$(extra-objs) $(install-lib))
-rm -f core $(common-objpfx)stub-$(subdir)
$(rmobjs)