mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-12-23 04:43:57 +01:00
Merge branch 'master' of github.com:TREX-CoE/trexio
This commit is contained in:
commit
f0df59e003
@ -35,6 +35,7 @@
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
CLEANFILES = trexio.mod
|
||||
BUILT_SOURCES = trexio.mod
|
||||
EXTRA_DIST = .git_hash
|
||||
|
||||
SUBDIRS =
|
||||
|
||||
@ -189,6 +190,11 @@ CLEANFILES += $(SOURCES) $(trexio_f) $(trexio_h)
|
||||
|
||||
BUILT_SOURCES += $(SOURCES) $(trexio_f) $(test_trexio_f)
|
||||
|
||||
.git_hash: FORCE
|
||||
git log | head -1 | cut -d ' ' -f 2 > .git_hash
|
||||
|
||||
all: .git_hash
|
||||
|
||||
|
||||
$(SOURCES): $(trexio_f)
|
||||
src/trexio.c: $(trexio_h)
|
||||
@ -259,3 +265,4 @@ CLEANFILES += $(pytrexio_c) \
|
||||
|
||||
endif
|
||||
|
||||
.PHONY: FORCE
|
||||
|
@ -169,7 +169,14 @@ if test "x${TREXIO_DEVEL}" != "x"; then
|
||||
HAS_CPPCHECK=1
|
||||
fi
|
||||
|
||||
GIT_HASH=`git log | head -1 | cut -d ' ' -f 2 | tee ${srcdir}/.git_hash`
|
||||
|
||||
else
|
||||
|
||||
GIT_HASH=`cat ${srcdir}/.git_hash`
|
||||
|
||||
fi
|
||||
AC_DEFINE_UNQUOTED(GIT_HASH, ["${GIT_HASH}"], [Git SHA1 Hash])
|
||||
|
||||
## Libm
|
||||
## ----
|
||||
@ -191,7 +198,7 @@ AC_OUTPUT
|
||||
echo \
|
||||
"-------------------------------------------------
|
||||
|
||||
${PACKAGE_NAME} Version ${PACKAGE_VERSION} ${TREXIO_DEVEL}
|
||||
${PACKAGE_NAME} Version ${PACKAGE_VERSION} ${GIT_HASH} ${TREXIO_DEVEL}
|
||||
|
||||
Prefix ........: ${prefix}
|
||||
CC ............: ${CC}
|
||||
|
Loading…
Reference in New Issue
Block a user