summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 84914abb2c..67d1bbb06c 100644
--- a/Makefile
+++ b/Makefile
@@ -632,8 +632,11 @@ config.mak: configure
@echo "####### Please run ./configure again - it's changed! #######"
@echo "############################################################"
-version.h: version.sh
- ./$< `$(CC) -dumpversion`
+version.h .version: version.sh
+ ./$<
+
+# Force version.sh to run to potentially regenerate version.h
+-include .version
%$(EXESUF): %.c
$(CC) $(CFLAGS) -o $@ $^
@@ -855,7 +858,7 @@ driversclean:
-include $(DEP_FILES)
.PHONY: all doxygen locales *install* *tools drivers
-.PHONY: checkheaders *clean tests
+.PHONY: checkheaders *clean tests .version
# Disable suffix rules. Most of the builtin rules are suffix rules,
# so this saves some time on slow systems.