Browse Source

Generating automatic build timestamp

master
Thomas Schmitt 14 years ago
parent
commit
af36e5e127
  1. 16
      xorriso/xorriso_makefile_am.txt
  2. 2
      xorriso/xorriso_timestamp.h

16
xorriso/xorriso_makefile_am.txt

@ -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

2
xorriso/xorriso_timestamp.h

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

Loading…
Cancel
Save