Merge "replacing all vec_sort() invocations to vec_sort_with_function()"
[vpp.git] / vpp / Makefile.in
index 17f3a8c..1324716 100644 (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  " $@ ;                                 \