aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-08-20 10:12:54 +0200
committerClifford Wolf <clifford@clifford.at>2013-08-20 10:13:43 +0200
commite3aa0514f22ccdb1b25856ca81462f86f2a5c612 (patch)
tree013ed3653a72cff4ef9c9d6ecf7354b1ad0bd37f /Makefile
parent485e870bcd563c843a257b4c8178589c9c3a3e66 (diff)
downloadyosys-e3aa0514f22ccdb1b25856ca81462f86f2a5c612.tar.gz
yosys-e3aa0514f22ccdb1b25856ca81462f86f2a5c612.tar.bz2
yosys-e3aa0514f22ccdb1b25856ca81462f86f2a5c612.zip
Added cleaning of old version_* files to version_* make rule
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
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