Reacting on ticket 138 by stick, revoked buildstamp due to ugly make install
This commit is contained in:
@ -32,14 +32,18 @@ libinclude_HEADERS = \
|
||||
bin_PROGRAMS = \
|
||||
xorriso/xorriso
|
||||
|
||||
# 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_CPPFLAGS = -Ilibisoburn
|
||||
xorriso_xorriso_CFLAGS = -DXorriso_with_maiN -DXorriso_with_regeX $(READLINE_DEF)
|
||||
@ -57,16 +61,16 @@ xorriso_xorriso_SOURCES = \
|
||||
# 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
|
||||
|
||||
|
||||
# Outperformed by the .PHONY above. But still in for a few release cycles.
|
||||
# Trying to create a build timestamp file semi-manually
|
||||
# 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
|
||||
@ -76,7 +80,6 @@ buildstamp:
|
||||
buildstamped: buildstamp
|
||||
make
|
||||
|
||||
# ^^^ Outperformed by the .PHONY above ^^^
|
||||
|
||||
|
||||
## Build test applications
|
||||
|
Reference in New Issue
Block a user