--- a/Make.proto Thu Feb 02 16:09:32 2012 +0000
+++ b/Make.proto Mon Feb 06 15:47:02 2012 +0000
@@ -1,7 +1,7 @@
# $Header$
#
# DO NOT EDIT
-# automagically generated from the projectDefinition: stx_libbasic3 at 2012-01-30 17:18:10.648.
+# automagically generated from the projectDefinition: stx_libbasic3 at 2012-02-06 15:46:26.696.
#
# Warning: once you modify this file, do not rerun
# stmkmp or projectDefinition-build again - otherwise, your changes are lost.
@@ -63,21 +63,29 @@
all:: preMake classLibRule postMake
-pre_objs:: update-svn-revision
+pre_objs::
+
-update-svn-revision:
+# Update SVN revision in stx_libbasic3.st
+ifneq (,$(findstring .svn,$(wildcard .svn)))
+.svnversion: *.st
if [ -d .svn ]; then \
rev=$(shell svnversion -n); \
- if [ ! -r .svnversion -o "$$rev" != "$$(cat .svnversion)" ]; then \
- echo -n $$rev > .svnversion; \
- rev2=$$(printf "%15s" \'$$rev\'); \
- sed -i -e "s/\"\$$SVN\-Revision:\".*\"\$$\"/\"\$$SVN-Revision:\"$$rev2\"\$$\"/g" \
- stx_libbasic3.st; \
- fi \
+ echo -n $$rev > .svnversion; \
+ else \
+ echo -n exported > .svnversion; \
fi
-.PHONY: update-svn-revision
+
+stx_libbasic3.o: stx_libbasic3.st .svnversion
+ if [ -d .svn ]; then \
+ rev2=$(shell svnversion -n); \
+ sed -e "s/\"\$$SVN\-Revision:\".*\"\$$\"/\"\$$SVN-Revision:\"$$rev2\"\$$\"/g" $< > .stx_libbasic3.st; \
+ fi
+ $(MAKE) CC="$(CLASSLIB_CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" STC="$(STC)" STFILE=.stx_libbasic3.svn $(O_RULE);
+ mv .stx_libbasic3.svn.$(O) stx_libbasic3.$(O)
+endif