Add dependencies on the VERSION file
- this fixes issue where some of the binary objects would contain an outdated MAGIC_VERSION if "make clean" was not done after the VERSION file changes. (e.g., the "Magic VERSION revision REVISION" message in the wish console and the version requirement checks from a tech file)
This commit is contained in:
parent
bb453f976e
commit
4066d50332
|
|
@ -5,6 +5,7 @@
|
|||
MODULE = tcltk
|
||||
MAGICDIR = ..
|
||||
SRCS = tclmagic.c
|
||||
OBJS = $(subst .c,.o,${SRCS})
|
||||
|
||||
include ${MAGICDIR}/defs.mak
|
||||
|
||||
|
|
@ -58,7 +59,7 @@ magicdnull: magicdnull.c ${MAGICDIR}/defs.mak
|
|||
-o magicdnull ${LD_RUN_PATH} ${LIB_SPECS_NOSTUB} ${LIBS} \
|
||||
${GR_LIBS}
|
||||
|
||||
magic.tcl: magic.tcl.in ${MAGICDIR}/defs.mak
|
||||
magic.tcl: magic.tcl.in ${MAGICDIR}/defs.mak ${MAGICDIR}/VERSION
|
||||
sed -e /TCL_DIR/s%TCL_DIR%${TCLDIR}%g \
|
||||
-e /MAGIC_VERSION/s%MAGIC_VERSION%${MAGIC_VERSION}%g \
|
||||
-e /MAGIC_REVISION/s%MAGIC_REVISION%${MAGIC_REVISION}%g \
|
||||
|
|
@ -94,4 +95,7 @@ $(DESTDIR)${INSTALL_BINDIR}/ext2sim.sh: ext2sim.sh
|
|||
${CP} ext2sim.sh $(DESTDIR)${INSTALL_BINDIR}/ext2sim
|
||||
(cd $(DESTDIR)${INSTALL_BINDIR}; chmod 0755 ext2sim)
|
||||
|
||||
# An additional dependency on the VERSION file
|
||||
${OBJS}: ${MAGICDIR}/VERSION
|
||||
|
||||
include ${MAGICDIR}/rules.mak
|
||||
|
|
|
|||
Loading…
Reference in New Issue