Force recompilation of version.c

Change-Id: Ife9d074c83df739a39f363203fac149bfbc2c49b
Signed-off-by: Dave Barach <dave@barachs.net>
This commit is contained in:
Dave Barach
2015-12-13 15:10:31 -05:00
parent a0d4a1a6d1
commit cd9752ce4f
3 changed files with 20 additions and 13 deletions

View File

@ -51,14 +51,17 @@ api_DATA = api/vpe.api
BUILT_SOURCES += api/vpe.api.h app/version.h
app/version.o: app/version.h
.PHONY: app/version.h
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)\"" >> $@
app/version.h:
@echo " 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)\"" >> $@
@echo "#define VPP_BUILD_VER \"$$(../../scripts/version)\"" >> $@
vpe_LDADD = -lvlibapi -lvlibmemory -lvlib_unix -lvlib

View File

@ -1074,17 +1074,18 @@ uninstall-am: uninstall-apiDATA uninstall-binPROGRAMS \
uninstall-binPROGRAMS uninstall-libLTLIBRARIES \
uninstall-nobase_includeHEADERS
.PRECIOUS: Makefile
app/version.o: app/version.h
.PHONY: app/version.h
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)\"" >> $@
app/version.h:
@echo " 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)\"" >> $@
@echo "#define VPP_BUILD_VER \"$$(../../scripts/version)\"" >> $@
%.api.h: %.api
@echo " APIGEN " $@ ; \

View File

@ -16,8 +16,11 @@
#include <app/version.h>
static char * vpe_version_string =
"vpp v" VPP_BUILD_VER " built by " VPP_BUILD_USER " on " VPP_BUILD_HOST " at " VPP_BUILD_DATE;
static char * vpe_dir_string = "workspace is " VPP_BUILD_TOPDIR;
"vpp v" VPP_BUILD_VER
" built by " VPP_BUILD_USER
" on " VPP_BUILD_HOST
" at " VPP_BUILD_DATE;
static char * vpe_dir_string = "Built in " VPP_BUILD_TOPDIR;
static clib_error_t *
show_vpe_version_command_fn (vlib_main_t * vm,