mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- src/gui/Makefile.am: fix creation of git_version.h
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
AM_CPPFLAGS = -fno-rtti -fno-exceptions -D__STDC_FORMAT_MACROS
|
||||
#AM_CPPFLAGS = -fno-rtti
|
||||
BUILT_SOURCES = git_version.h
|
||||
git_version.h: makeversion
|
||||
@if test -d ../../.git; then \
|
||||
echo "#define GITVERSION \"$$(git describe --dirty || echo `date` )\" " > git_version.h.tmp ; \
|
||||
git_version.h:
|
||||
@if test -d $(top_srcdir)/.git ; then \
|
||||
pushd $(top_srcdir) ; \
|
||||
GITDESCRIBE=$$(git describe --always --dirty || echo `date`) ; \
|
||||
popd ; \
|
||||
echo "#define GITVERSION \"$${GITDESCRIBE}\" " > git_version.h.tmp ; \
|
||||
if diff -q git_version.h git_version.h.tmp >/dev/null 2>&1 ; then \
|
||||
rm -f git_version.h.tmp ; \
|
||||
else \
|
||||
@@ -11,13 +14,11 @@ git_version.h: makeversion
|
||||
mv git_version.h.tmp git_version.h ; \
|
||||
fi; \
|
||||
else \
|
||||
rm git_version.h; echo '#define BUILT_DATE "'`date`'"' > git_version.h ; \
|
||||
rm -f git_version.h; \
|
||||
echo '#define BUILT_DATE "'`date`'"' > git_version.h ; \
|
||||
fi
|
||||
noinst_HEADERS = git_version.h
|
||||
|
||||
.PHONY: makeversion
|
||||
|
||||
|
||||
SUBDIRS = bedit components widget
|
||||
|
||||
INCLUDES = \
|
||||
|
Reference in New Issue
Block a user