Opportunity to generate build timestamp via make buildstamped
This commit is contained in:
25
Makefile.am
25
Makefile.am
@ -41,7 +41,8 @@ xorriso_xorriso_SOURCES = \
|
||||
xorriso/xorriso.c \
|
||||
xorriso/xorrisoburn.h \
|
||||
xorriso/xorrisoburn.c \
|
||||
xorriso/xorriso_timestamp.h
|
||||
xorriso/xorriso_timestamp.h \
|
||||
xorriso/xorriso_buildstamp.h
|
||||
|
||||
|
||||
# Install symbolic links to the xorriso binary
|
||||
@ -52,6 +53,27 @@ 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 explicitely.
|
||||
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
|
||||
|
||||
|
||||
## Build test applications
|
||||
noinst_PROGRAMS = \
|
||||
test/compare_file
|
||||
@ -129,6 +151,7 @@ EXTRA_DIST = \
|
||||
COPYING \
|
||||
INSTALL \
|
||||
xorriso/changelog.txt \
|
||||
xorriso/xorriso_buildstamp_none.h \
|
||||
xorriso/README \
|
||||
$(man_MANS)
|
||||
|
||||
|
Reference in New Issue
Block a user