aboutsummaryrefslogtreecommitdiff
path: root/Makefile.hw
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.hw')
-rw-r--r--Makefile.hw5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.hw b/Makefile.hw
index 155a0c3432..2bcbaffb4f 100644
--- a/Makefile.hw
+++ b/Makefile.hw
@@ -19,7 +19,8 @@ all: $(hw-obj-y)
@true
clean:
- rm -f *.o */*.o *.d */*.d *.a */*.a *~ */*~ */*/*.d
+ rm -f $(addsuffix /*.o, $(dir $(sort $(hw-obj-y))))
+ rm -f $(addsuffix /*.d, $(dir $(sort $(hw-obj-y))))
# Include automatically generated dependency files
--include $(wildcard *.d */*.d */*/*.d)
+-include $(patsubst %.o, %.d, $(hw-obj-y))