From e3aa0514f22ccdb1b25856ca81462f86f2a5c612 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 20 Aug 2013 10:12:54 +0200 Subject: [PATCH] Added cleaning of old version_* files to version_* make rule --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b3a1f46f5..21da88523 100644 --- a/Makefile +++ b/Makefile @@ -80,7 +80,8 @@ top-all: $(TARGETS) $(EXTRA_TARGETS) yosys: $(OBJS) $(CXX) -o yosys $(LDFLAGS) $(OBJS) $(LDLIBS) -kernel/version_$(GIT_REV).cc: +kernel/version_$(GIT_REV).cc: Makefile + rm -f kernel/version_*.o kernel/version_*.d kernel/version_*.cc echo "extern const char *yosys_version_str; const char *yosys_version_str=\"Yosys $(YOSYS_VER) (git sha1 $(GIT_REV))\";" > kernel/version_$(GIT_REV).cc yosys-config: yosys-config.in -- 2.30.2