mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
src/gui/Makefile.am: avoid some rebuilds
Origin commit data
------------------
Commit: 3efef60593
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-01-09 (Sun, 09 Jan 2022)
Origin message was:
------------------
- src/gui/Makefile.am: avoid some rebuilds
This commit is contained in:
@@ -1,15 +1,17 @@
|
|||||||
AM_CPPFLAGS = -fno-rtti -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
|
AM_CPPFLAGS = -fno-rtti -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
|
||||||
|
|
||||||
BUILT_SOURCES = version.h
|
BUILT_SOURCES = version.h
|
||||||
version.h:
|
VERSION = $(shell find version.h -mmin +60 2>/dev/null)
|
||||||
|
$(VERSION):
|
||||||
@rm -f $@
|
@rm -f $@
|
||||||
@echo "#define BUILT_DATE \"$$(date)\"" > $@
|
@echo "#define BUILT_DATE \"$$(date)\"" > $@
|
||||||
@echo "#define BUILT_TIMESTAMP \"$$(date +%s)\"" >> $@
|
@echo "#define BUILT_TIMESTAMP \"$$(date +%s)\"" >> $@
|
||||||
@if test -d $(top_srcdir)/.git ; then \
|
@if test -d $(top_srcdir)/.git; then \
|
||||||
pushd $(top_srcdir) ; \
|
pushd $(top_srcdir); \
|
||||||
GITTAG=$$(git tag -l "NI-*" | tail -n1); \
|
GITTAG=$$(git tag -l "NI-*" | tail -n1); \
|
||||||
GITDESCRIBE=$$(git describe --always --long --tags --match $$GITTAG | sed 's/-/./2' || echo "VCS failed") ; \
|
GITDESCRIBE=$$(git describe --always --long --tags --match $$GITTAG | sed 's/-/./2' || echo "VCS failed"); \
|
||||||
popd ; \
|
popd; \
|
||||||
echo "#define VCS \"$${GITDESCRIBE}\"" >> $@ ; \
|
echo "#define VCS \"$${GITDESCRIBE}\"" >> $@; \
|
||||||
fi
|
fi
|
||||||
noinst_HEADERS = version.h
|
noinst_HEADERS = version.h
|
||||||
.PHONY: version.h
|
.PHONY: version.h
|
||||||
|
Reference in New Issue
Block a user