|
|
|
@ -21,14 +21,16 @@ xorriso_xorriso_CFLAGS = -DXorriso_standalonE -DXorriso_with_maiN -DXorriso_with
|
|
|
|
|
xorriso_xorriso_LDADD = $(THREAD_LIBS) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# This looks quite ugly with make install: xorriso.c is compiled twice again |
|
|
|
|
# |
|
|
|
|
# Trying to create a build timestamp file |
|
|
|
|
# |
|
|
|
|
BUILT_SOURCES = xorriso/xorriso_buildstamp.h |
|
|
|
|
# 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 |
|
|
|
|
# .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 = \ |
|
|
|
@ -165,18 +167,17 @@ test_compare_file_SOURCES = test/compare_file.c
|
|
|
|
|
# Install symbolic links to the xorriso binary |
|
|
|
|
# |
|
|
|
|
install-exec-hook: |
|
|
|
|
if test -e $(bindir)/xorrisofs ; then rm $(bindir)/xorrisofs ; else echo ; fi |
|
|
|
|
ln -s xorriso $(bindir)/xorrisofs |
|
|
|
|
if test -e $(bindir)/osirrox ; then rm $(bindir)/osirrox ; else echo ; fi |
|
|
|
|
ln -s xorriso $(bindir)/osirrox |
|
|
|
|
if test -e $(bindir)/xorrecord ; then rm $(bindir)/xorrecord ; else echo ; fi |
|
|
|
|
ln -s xorriso $(bindir)/xorrecord |
|
|
|
|
|
|
|
|
|
if test -e $(DESTDIR)$(bindir)/xorrisofs ; then rm $(DESTDIR)$(bindir)/xorrisofs ; else echo ; fi |
|
|
|
|
ln -s xorriso $(DESTDIR)$(bindir)/xorrisofs |
|
|
|
|
if test -e $(DESTDIR)$(bindir)/osirrox ; then rm $(DESTDIR)$(bindir)/osirrox ; else echo ; fi |
|
|
|
|
ln -s xorriso $(DESTDIR)$(bindir)/osirrox |
|
|
|
|
if test -e $(DESTDIR)$(bindir)/xorrecord ; then rm $(DESTDIR)$(bindir)/xorrecord ; else echo ; fi |
|
|
|
|
ln -s xorriso $(DESTDIR)$(bindir)/xorrecord |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# <<< seems to be outperformed by the .PHONY above |
|
|
|
|
|
|
|
|
|
# Trying to create a build timestamp file |
|
|
|
|
# Alternative to the disabled .PHONY above. |
|
|
|
|
# Trying to create a build timestamp file semi-manually: make buildstamped |
|
|
|
|
# |
|
|
|
|
buildstamp: |
|
|
|
|
date -u '+#define Xorriso_build_timestamP "%Y.%m.%d.%H%M%S"' >xorriso/xorriso_buildstamp.h |
|
|
|
@ -185,17 +186,7 @@ buildstamp:
|
|
|
|
|
# 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 |
|
|
|
|
|
|
|
|
|
# <<< seems to be outperformed by the .PHONY above |
|
|
|
|
|
|
|
|
|
## ========================================================================= ## |
|
|
|
|
|
|
|
|
|