mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +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 -fno-exceptions -D__STDC_FORMAT_MACROS
|
||||||
#AM_CPPFLAGS = -fno-rtti
|
#AM_CPPFLAGS = -fno-rtti
|
||||||
BUILT_SOURCES = git_version.h
|
BUILT_SOURCES = git_version.h
|
||||||
git_version.h: makeversion
|
git_version.h:
|
||||||
@if test -d ../../.git; then \
|
@if test -d $(top_srcdir)/.git ; then \
|
||||||
echo "#define GITVERSION \"$$(git describe --dirty || echo `date` )\" " > git_version.h.tmp ; \
|
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 \
|
if diff -q git_version.h git_version.h.tmp >/dev/null 2>&1 ; then \
|
||||||
rm -f git_version.h.tmp ; \
|
rm -f git_version.h.tmp ; \
|
||||||
else \
|
else \
|
||||||
@@ -11,13 +14,11 @@ git_version.h: makeversion
|
|||||||
mv git_version.h.tmp git_version.h ; \
|
mv git_version.h.tmp git_version.h ; \
|
||||||
fi; \
|
fi; \
|
||||||
else \
|
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
|
fi
|
||||||
noinst_HEADERS = git_version.h
|
noinst_HEADERS = git_version.h
|
||||||
|
|
||||||
.PHONY: makeversion
|
|
||||||
|
|
||||||
|
|
||||||
SUBDIRS = bedit components widget
|
SUBDIRS = bedit components widget
|
||||||
|
|
||||||
INCLUDES = \
|
INCLUDES = \
|
||||||
|
Reference in New Issue
Block a user