summaryrefslogtreecommitdiff
path: root/source4/Makefile
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-26 14:48:11 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-26 14:48:11 +0100
commit0493c5a5004096ab5118920dec16d6be4cf0fdc9 (patch)
tree4f46eee986dccef63dcf8dc1ef529f0f94ebf601 /source4/Makefile
parenta999a1fc996234555bd2d8a4a873b39d111c347e (diff)
downloadsamba-0493c5a5004096ab5118920dec16d6be4cf0fdc9.tar.gz
samba-0493c5a5004096ab5118920dec16d6be4cf0fdc9.tar.bz2
samba-0493c5a5004096ab5118920dec16d6be4cf0fdc9.zip
Move common rules code to separate directory.
(This used to be commit 803ebd6479ae388ae65de8de7fb88600452d47df)
Diffstat (limited to 'source4/Makefile')
-rw-r--r--source4/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/source4/Makefile b/source4/Makefile
index 4bd5042f3c..3a303ae39f 100644
--- a/source4/Makefile
+++ b/source4/Makefile
@@ -19,6 +19,18 @@ BNLD_FLAGS = $(LDFLAGS) $(SYS_LDFLAGS)
HOSTCC_FLAGS = -D_SAMBA_HOSTCC_ $(CFLAGS)
HOSTLD_FLAGS = $(LDFLAGS) $(SYS_LDFLAGS)
+$(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"
+ @-rm -f include/includes.h.gch
+
+pch:: clean_pch include/includes.h.gch
+
.DEFAULT_GOAL := all
ifneq ($(automatic_deps),yes)