summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/main.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/main.mk b/source4/main.mk
index 8f42554a6b..e08617c029 100644
--- a/source4/main.mk
+++ b/source4/main.mk
@@ -217,8 +217,11 @@ include/config.h:
@echo "You need to rerun ./autogen.sh and ./configure"
@/bin/false
-$(srcdir)/version.h:
- @$(SHELL) script/mkversion.sh VERSION version.h $(srcdir)/
+$(srcdir)/version.h: $(srcdir)/VERSION
+ @$(SHELL) script/mkversion.sh VERSION $(srcdir)/version.h $(srcdir)/
+
+regen_version:
+ @$(SHELL) script/mkversion.sh VERSION $(srcdir)/version.h $(srcdir)/
clean_pch:
@echo "Removing precompiled headers"