Date: Friday, March 16, 2007 @ 12:32:13
Author: marc
Path: /cvsroot/carob/carob
Modified: GNUmakefile (1.31 -> 1.32)
Generating include/CarobVersion.hpp from defaults.mk
-------------+
GNUmakefile | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
Index: carob/GNUmakefile
diff -u carob/GNUmakefile:1.31 carob/GNUmakefile:1.32
--- carob/GNUmakefile:1.31 Fri Mar 16 11:27:45 2007
+++ carob/GNUmakefile Fri Mar 16 12:32:13 2007
@@ -53,6 +53,8 @@
INCDIR = include
SRCDIR = src
+VERSIONHPP = include/CarobVersion.hpp
+
#Carob C++ lib
OBJS = ${SRCDIR}/Common.o\
${SRCDIR}/JavaSocket.o\
@@ -109,8 +111,8 @@
DOC_HTML = ${DOC_OUT}/index.html
all: lib static
-lib: ${LIB_CAROB_REALNAME}
-static: ${LIB_CAROB_STATIC}
+lib: ${VERSIONHPP} ${LIB_CAROB_REALNAME}
+static: ${VERSIONHPP} ${LIB_CAROB_STATIC}
test: all
$(MAKE) -C test
@@ -126,7 +128,7 @@
./configure --clean
clean: clean-lib clean-test clean-doc clean-check
- ${RM} ${SRCDIR}/*.o
+ ${RM} ${SRCDIR}/*.o ${VERSIONHPP}
clean-lib:
${RM} ${LIB_CAROB_SONAME} ${LIB_CAROB_LINKNAME} ${LIB_CAROB_REALNAME}
${LIB_CAROB_STATIC}
clean-test:
@@ -144,6 +146,11 @@
@printf "(you don't really need to install libcarob.a to use it)\n"
+${VERSIONHPP}: ${MKINCLUDES}/defaults.mk
+ @printf "// Generated by make\n" > $@
+ printf "#define CAROB_VERSION ${CAROB_VERSION}\n" >> $@
+
+
########## CHECKS ##############"
check: clean-doc doc checkheaders
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits