Author: hpoussin
Date: Sun Jan 13 13:52:55 2008
New Revision: 31752
URL:
http://svn.reactos.org/svn/reactos?rev=31752&view=rev
Log:
buildno.cpp depends of version.h
Modified:
trunk/reactos/tools/buildno/buildno.mak
Modified: trunk/reactos/tools/buildno/buildno.mak
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/buildno/buildno.mak?…
==============================================================================
--- trunk/reactos/tools/buildno/buildno.mak (original)
+++ trunk/reactos/tools/buildno/buildno.mak Sun Jan 13 13:52:55 2008
@@ -29,6 +29,8 @@
BUILDNO_HOST_LFLAGS = $(TOOLS_LFLAGS)
+BUILDNO_VERSION = include$(SEP)reactos$(SEP)version.h
+
.PHONY: buildno
buildno: $(BUILDNO_TARGET)
@@ -36,7 +38,7 @@
$(ECHO_LD)
${host_gpp} $^ $(BUILDNO_HOST_LFLAGS) -o $@
-$(BUILDNO_INT_)buildno.o: $(BUILDNO_BASE_)buildno.cpp | $(BUILDNO_INT)
+$(BUILDNO_INT_)buildno.o: $(BUILDNO_BASE_)buildno.cpp $(BUILDNO_VERSION) |
$(BUILDNO_INT)
$(ECHO_CC)
${host_gpp} $(BUILDNO_HOST_CXXFLAGS) -c $< -o $@
@@ -45,6 +47,10 @@
-@$(rm) $(BUILDNO_TARGET) $(BUILDNO_OBJECTS) 2>$(NUL)
clean: buildno_clean
+# Uncomment the following line if you want to automatically
+# update build number after SVN update
+#.PHONY: $(BUILDNO_TARGET)
+
$(BUILDNO_H): $(BUILDNO_TARGET)
${mkdir} $(INTERMEDIATE_)include$(SEP)reactos 2>$(NUL)
$(ECHO_BUILDNO)