summaryrefslogtreecommitdiff
path: root/sal/util/makefile.mk
diff options
context:
space:
mode:
authorKay Ramme <kr@openoffice.org>2001-05-14 08:25:48 +0000
committerKay Ramme <kr@openoffice.org>2001-05-14 08:25:48 +0000
commitdd2e1fa3bf47df9b7bd00d233aa474d80d00d7ee (patch)
tree044076bd288148c49e289aad411bbef29e9e334d /sal/util/makefile.mk
parent8a2b8c9daea7a644a562f4eca1f13c117048c80c (diff)
generate&deliver udk version header
Diffstat (limited to 'sal/util/makefile.mk')
-rw-r--r--sal/util/makefile.mk15
1 files changed, 13 insertions, 2 deletions
diff --git a/sal/util/makefile.mk b/sal/util/makefile.mk
index a29a92759e69..1713120c1f8c 100644
--- a/sal/util/makefile.mk
+++ b/sal/util/makefile.mk
@@ -2,9 +2,9 @@
#
# $RCSfile: makefile.mk,v $
#
-# $Revision: 1.8 $
+# $Revision: 1.9 $
#
-# last change: $Author: tra $ $Date: 2001-05-10 16:04:28 $
+# last change: $Author: kr $ $Date: 2001-05-14 09:25:48 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
@@ -180,6 +180,8 @@ SHL1OBJS= \
.ENDIF
.ENDIF
+$(SHL1TARGET): $(OUT)/inc/udkversion.h
+
SHL1DEPN=
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
@@ -262,3 +264,12 @@ SHL2DEPN=makefile.mk
.INCLUDE : target.mk
+$(OUT)/inc/udkversion.h:
+ echo '#ifndef _SAL_UDKVERSION_H_' > $@
+ echo '#define _SAL_UDKVERSION_H_' >> $@
+ echo '' >> $@
+ echo '#define SAL_UDK_MAJOR "$(UDK_MAJOR)"' >> $@
+ echo '#define SAL_UDK_MINOR "$(UDK_MINOR)"' >> $@
+ echo '#define SAL_UDK_MICRO "$(UDK_MICRO)"' >> $@
+ echo '' >> $@
+ echo '#endif' >> $@