diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-06-27 11:07:55 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:09:34 -0500 |
commit | 529aa3b885cfbea6706ef52a0f869a2424f13261 (patch) | |
tree | 4c8d2927bbcf95f607415b8d6900e0e8c04902c5 /source4 | |
parent | c71aac44032a335c8977345e78a63c507bfe8e7e (diff) | |
download | samba-529aa3b885cfbea6706ef52a0f869a2424f13261.tar.gz samba-529aa3b885cfbea6706ef52a0f869a2424f13261.tar.bz2 samba-529aa3b885cfbea6706ef52a0f869a2424f13261.zip |
r16561: - create version.h relative to srcdir
- let version.h depend on VERSION
- add a rule to manualy regenerate version.h
e.g. after a svn up
metze
(This used to be commit 7167579cbfcda0a130f9eaf80d4783f4bd134802)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/main.mk | 7 |
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" |