Added cleaning of old version_* files to version_* make rule
authorClifford Wolf <clifford@clifford.at>
Tue, 20 Aug 2013 08:12:54 +0000 (10:12 +0200)
committerClifford Wolf <clifford@clifford.at>
Tue, 20 Aug 2013 08:13:43 +0000 (10:13 +0200)
Makefile

index b3a1f46f518e9e267ec4dc40f00f787494eb3c66..21da88523b481a97b480d97eecc55309d83a0e3e 100644 (file)
--- 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