Opportunity to generate build timestamp via make buildstamped

This commit is contained in:
2008-07-09 15:56:23 +00:00
parent 74cb92535d
commit 679dd10517
6 changed files with 57 additions and 3 deletions

View File

@ -28,6 +28,7 @@ xorriso_xorriso_SOURCES = \
xorriso/xorrisoburn.h \
xorriso/xorrisoburn.c \
xorriso/xorriso_timestamp.h \
xorriso/xorriso_buildstamp.h \
\
libisoburn/libisoburn.h \
libisoburn/isoburn.h \
@ -137,7 +138,6 @@ xorriso_xorriso_SOURCES = \
\
version.h
noinst_PROGRAMS = \
test/compare_file
@ -159,6 +159,26 @@ install-exec-hook:
if test -e $(bindir)/osirrox ; then rm $(bindir)/osirrox ; else echo ; fi
ln -s xorriso $(bindir)/osirrox
# Trying to create a build timestamp file
#
buildstamp:
date -u '+#define Xorriso_build_timestamP "%Y.%m.%d.%H%M%S"' >xorriso/xorriso_buildstamp.h
cat xorriso/xorriso_buildstamp.h
# For now make buildstamped has to be performed manually.
buildstamped: buildstamp
make
#
# Processing of the "all:" rule happens too late.
# How to create a dependency of xorriso.c on buildstamp ?
# Not working:
# Add xorriso_buildstamp.h to xorriso_xorriso_SOURCES and make it depend
# on buildstamp. It runs. But at quite random occasions.
# xorriso/xorriso_buildstamp.h: buildstamp
#
# all: buildstamp
## ========================================================================= ##
# Indent source files