Generating automatic build timestamp

This commit is contained in:
Thomas Schmitt 2008-07-15 06:29:58 +00:00
parent 8873bb4a1e
commit 1df494e339
2 changed files with 17 additions and 1 deletions

View File

@ -20,6 +20,17 @@ xorriso_xorriso_CFLAGS = -DXorriso_standalonE -DXorriso_with_maiN -DXorriso_with
xorriso_xorriso_LDADD = $(THREAD_LIBS)
# Trying to create a build timestamp file
#
BUILT_SOURCES = xorriso/xorriso_buildstamp.h
# phony targets get rebuilt every time
.PHONY: xorriso/xorriso_buildstamp.h
xorriso/xorriso_buildstamp.h:
date -u '+#define Xorriso_build_timestamP "%Y.%m.%d.%H%M%S"' >xorriso/xorriso_buildstamp.h
cat xorriso/xorriso_buildstamp.h
xorriso_xorriso_SOURCES = \
\
xorriso/xorriso.h \
@ -162,6 +173,9 @@ install-exec-hook:
ln -s xorriso $(bindir)/xorrecord
# <<< seems to be outperformed by the .PHONY above
# Trying to create a build timestamp file
#
buildstamp:
@ -181,6 +195,8 @@ buildstamped: buildstamp
#
# all: buildstamp
# <<< seems to be outperformed by the .PHONY above
## ========================================================================= ##
# Indent source files

View File

@ -1 +1 @@
#define Xorriso_timestamP "2008.07.14.125133"
#define Xorriso_timestamP "2008.07.15.063040"