diff options
author | Damjan Marion <damarion@cisco.com> | 2015-12-12 14:40:59 +0100 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2015-12-13 18:18:27 +0100 |
commit | a0d4a1a6d1b81b132787e382ac3f8487b71cf52c (patch) | |
tree | aabeaa39e8b0e6db087e993c9acecadbf84811b7 /vpp/Makefile.in | |
parent | 29726ab117a1fc5b3d92d1afaaaaa08ef7f138eb (diff) |
new version handling
Change-Id: I90983f3df94a3b28199908b29ffd8f827ab0c379
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vpp/Makefile.in')
-rw-r--r-- | vpp/Makefile.in | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/vpp/Makefile.in b/vpp/Makefile.in index 643f41e9158..17f3a8cddf1 100644 --- a/vpp/Makefile.in +++ b/vpp/Makefile.in @@ -368,7 +368,7 @@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = foreign subdir-objects AM_CFLAGS = -Wall @Q_PLATFORM_DEFINE@ @Q_PLATFORM_PLUGPATH@ @DPDK@ -BUILT_SOURCES = api/vpe.api.h app/version.c +BUILT_SOURCES = api/vpe.api.h app/version.h CLEANFILES = lib_LTLIBRARIES = @@ -1074,17 +1074,17 @@ uninstall-am: uninstall-apiDATA uninstall-binPROGRAMS \ uninstall-binPROGRAMS uninstall-libLTLIBRARIES \ uninstall-nobase_includeHEADERS +.PRECIOUS: Makefile + -.PHONY: app/version.c +.PHONY: app/version.h -app/version.c: - @pushd ../../../vpp ; \ - branch=`git rev-parse --abbrev-ref HEAD` ; \ - popd ; \ - if [ x$$GITTAG = "x" ] ; then \ - GITTAG=$$USER-private ; \ - fi ; \ - vppversion -p vpe -b $${branch}@$${GITTAG} -o $@ +app/version.h: ../build-root/scripts/version + @echo "#define VPP_BUILD_DATE \"$$(date)\"" > $@ + @echo "#define VPP_BUILD_USER \"$$(whoami)\"" >> $@ + @echo "#define VPP_BUILD_HOST \"$$(hostname)\"" >> $@ + @echo "#define VPP_BUILD_TOPDIR \"$$(git rev-parse --show-toplevel)\"" >> $@ + @echo "#define VPP_BUILD_VER \"$$(../../scripts/version)\"" >> $@ %.api.h: %.api @echo " APIGEN " $@ ; \ |