From 275853931bab55b35c53c9547c2845d1495144b8 Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Sun, 3 Mar 2024 18:30:13 +0100 Subject: [PATCH] Smart entity rule --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 0cd18bb..c610ea4 100644 --- a/Makefile +++ b/Makefile @@ -11,8 +11,8 @@ all: $(PARTS) $(CHDL) -r $(FLAGS) $@ --wave=$@.ghw --stop-time=$(STOP) clean: - rm *.o - rm *.cf - rm *.ghw - -.PHONY: all clean $(PARTS) + find . -name '*.o' -exec rm -r {} \; + find . -name '*.cf' -exec rm -r {} \; + find . -name '*.ghw' -exec rm -r {} \; + find . -name '*.entity' -exec rm -r {} \; + find . -name $(PARTS) -exec rm -r {} \;