Skip to content
This repository has been archived by the owner on Feb 7, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' into 4.1
Browse files Browse the repository at this point in the history
* master:
  Adding back the logic when it is built from dist and not a repo
  Adding release variable for build
  • Loading branch information
Hugo Cruz committed Feb 9, 2017
2 parents 7e833a9 + ee68147 commit a680703
Showing 1 changed file with 24 additions and 14 deletions.
38 changes: 24 additions & 14 deletions include/Makefile.am
Expand Up @@ -2,18 +2,28 @@ nobase_noinst_HEADERS = common.h helpers.h plugins.h ipc.h http.h vss-hack.h vag
BUILT_SOURCES = vagent_version.h
MAINTAINERCLEANFILES = vagent_version.h
vagent_version.h: FORCE
V=$$(git describe --always --tags --dirty 2>/dev/null || echo NOGIT); \
echo "V: $$V"; \
( \
echo "/* $$V */" ;\
echo '/*' ;\
echo ' * NB: This file is machine generated, DO NOT EDIT!' ;\
echo ' *' ;\
echo ' * Run make to regenerate' ;\
echo ' *' ;\
echo ' */' ;\
echo "/* $$V */" ;\
echo '' ;\
echo "#define VAGENT_VERSION \"$$V\"" \
) > vagent_version.h
if [ -d "$(top_srcdir)/.git" ]; then \
V=$$(git describe --always --tags --dirty 2>/dev/null || echo NOGIT); \
echo "V: $$V"; \
( \
echo "/* $$V */" ;\
echo '/*' ;\
echo ' * NB: This file is machine generated, DO NOT EDIT!' ;\
echo ' *' ;\
echo ' * Run make to regenerate' ;\
echo ' *' ;\
echo ' */' ;\
echo "/* $$V */" ;\
echo '' ;\
echo "#define VAGENT_VERSION \"$$V\"" \
) > vagent_version.h ;\
else \
if [ ! -f vagent_version.h ]; then \
( \
echo "/* NOGIT */" ; \
echo '/* No git commit ID available, see include/Makefile.am for explanation */' ; \
echo '#define VAGENT_VERSION "NOGIT"' \
) > vagent_version.h ; \
fi \
fi
FORCE:

0 comments on commit a680703

Please sign in to comment.