+# version.c and fpga_version_info.c to be remade on every compilation
+.PHONY: version.c fpga_version_info.c
+
+version.c: default_version.c
+ perl ../tools/mkversion.pl .. > $@ || $(COPY) $^ $@
+
+fpga_version_info.c: $(FPGA_BITSTREAMS) $(FPGA_COMPRESSOR)
+ $(FPGA_COMPRESSOR) -v $(filter %.bit,$^) $@
+