Regenerate version.h if necessary
This commit is contained in:
parent
baeb59cd2e
commit
ac6808a73e
@ -46,12 +46,17 @@ LDADD+= ${LIBDL} ${LIBKVM}
|
||||
include ${MK}/${MKPAM}.mk
|
||||
|
||||
${SRCS}: version.h
|
||||
version.h:
|
||||
echo "#define VERSION \"${VERSION}${GITVER}\"" >version.h
|
||||
|
||||
.PHONY: version.h.tmp
|
||||
version.h.tmp:
|
||||
echo "#define VERSION \"${VERSION}${GITVER}\"" >$@
|
||||
if test -n "${BRANDING}"; then \
|
||||
echo "#define BRANDING \"${BRANDING}\"" >> version.h; \
|
||||
echo "#define BRANDING \"${BRANDING}\"" >> $@; \
|
||||
fi
|
||||
|
||||
version.h: version.h.tmp
|
||||
cmp -s $@.tmp $@ && rm $@.tmp || mv $@.tmp $@
|
||||
|
||||
install: all
|
||||
${INSTALL} -d ${DESTDIR}${SBINDIR}
|
||||
${INSTALL} -m ${BINMODE} ${PROG} ${DESTDIR}${SBINDIR}
|
||||
|
Loading…
Reference in New Issue
Block a user