move generation of udkversion.mk to configure

Change-Id: Id2f047686e2ba3ac2d8242d9b47abad751679759
This commit is contained in:
Michael Stahl
2013-02-27 15:48:07 +01:00
parent 960e2ee691
commit f413decfef
5 changed files with 13 additions and 9 deletions

View File

@@ -1 +1,2 @@
config_*.h
udkversion.mk

View File

@@ -1,4 +1,4 @@
/*
/*
UDK version.

View File

@@ -0,0 +1,6 @@
# UDK version number
UDK_MAJOR=@UDK_MAJOR@
UDK_MINOR=@UDK_MINOR@
UDK_MICRO=@UDK_MICRO@

View File

@@ -4181,6 +4181,9 @@ UDK_MAJOR=3
UDK_MINOR=2
UDK_MICRO=7
AC_SUBST(UDK_MAJOR)
AC_SUBST(UDK_MINOR)
AC_SUBST(UDK_MICRO)
AC_DEFINE_UNQUOTED(SAL_UDK_MAJOR,"$UDK_MAJOR")
AC_DEFINE_UNQUOTED(SAL_UDK_MINOR,"$UDK_MINOR")
AC_DEFINE_UNQUOTED(SAL_UDK_MICRO,"$UDK_MICRO")
@@ -11873,7 +11876,7 @@ if test -f config_host.mk; then
config_md5=`$MD5SUM config_host.mk | sed "s/ .*//"`
fi
AC_CONFIG_FILES([config_host.mk Makefile lo.xcent solenv/inc/minor.mk instsetoo_native/util/openoffice.lst])
AC_CONFIG_FILES([config_host.mk Makefile lo.xcent solenv/inc/minor.mk config_host/udkversion.mk instsetoo_native/util/openoffice.lst])
AC_CONFIG_HEADERS([config_host/config_clang.h])
AC_CONFIG_HEADERS([config_host/config_global.h])
AC_CONFIG_HEADERS([config_host/config_graphite.h])

View File

@@ -15,12 +15,6 @@ odkcommon_ZIPLIST += include/udkversion.mk
$(eval $(call gb_CustomTarget_register_target,odk/odkcommon/include,include/udkversion.mk))
$(odk_WORKDIR)/include/udkversion.mk:
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
echo "#UDK version number" > $@
echo "#major" >>$@
echo "UDK_MAJOR=$(UDK_MAJOR)" >> $@
echo "#minor" >>$@
echo "UDK_MINOR=$(UDK_MINOR)" >> $@
echo "#micro" >>$@
echo "UDK_MICRO=$(UDK_MICRO)" >> $@
cp $(BUILDDIR)/config_host/udkversion.mk $@
# vim: set noet sw=4 ts=4: