Fix .depend files to work for build tools.

This is somewhat of a follow-up to r335746.

MFC after:	2 weeks
Sponsored by:	DellEMC
This commit is contained in:
Bryan Drewery 2019-06-15 17:08:13 +00:00
parent f39f6a562e
commit c63c5ab001
7 changed files with 10 additions and 4 deletions

View File

@ -117,6 +117,7 @@ csh.1: tcsh.man
build-tools: gethost
DEPENDOBJS+= gethost
gethost: gethost.c sh.err.h tc.const.h sh.h ${BUILD_TOOLS_META}
@rm -f ${.TARGET}
${CC:N${CCACHE_BIN}} -o gethost ${LDFLAGS} ${CFLAGS:C/-DHAVE_ICONV//} \

View File

@ -48,6 +48,7 @@ builtins.h: .NOMETA
builtins.c builtins.h: mkbuiltins builtins.def
sh ${.CURDIR}/mkbuiltins ${.CURDIR}
DEPENDOBJS+= mknodes mksyntax
mknodes mksyntax: ${BUILD_TOOLS_META}
.ORDER: nodes.c nodes.h

View File

@ -41,10 +41,11 @@ magic.mgc: mkmagic magic
${BTOOLSPATH:U.}/mkmagic magic
CLEANFILES+= mkmagic
DEPENDOBJS+= mkmagic
build-tools: mkmagic
mkmagic: apprentice.c cdf_time.c encoding.c funcs.c magic.c print.c ${INCS} ${BUILD_TOOLS_META}
${CC:N${CCACHE_BIN}} ${CFLAGS} -DCOMPILE_ONLY ${LDFLAGS} -o ${.TARGET} ${.ALLSRC:N*.h} \
${LDADD}
${CC:N${CCACHE_BIN}} ${CFLAGS} -DCOMPILE_ONLY ${LDFLAGS} -o ${.TARGET} \
${.ALLSRC:N*.h:O:u} ${LDADD}
FILEVER!= awk '$$1 == "\#define" && $$2 == "VERSION" { print $$3; exit }' \
${.CURDIR}/config.h

View File

@ -389,6 +389,7 @@ keys.list: MKkeys_list.sh Caps
${NCURSES_DIR}/include/Caps | LC_ALL=C sort > keys.list
# Build tools
DEPENDOBJS+= make_hash make_keys
build-tools: make_hash make_keys
make_keys: make_keys.c names.c ncurses_def.h ${HEADERS} ${BUILD_TOOLS_META}

View File

@ -12,6 +12,7 @@ CLEANFILES+= ${SCRMAPS_MK} ${SCRMAPS}
FILES= ${SCRMAPS}
FILESDIR= ${SHAREDIR}/syscons/scrnmaps
DEPENDOBJS+= ${SCRMAPS_MK}
build-tools: ${SCRMAPS_MK}
${SCRMAPS}: ${.TARGET:R}.mk

View File

@ -27,6 +27,7 @@ ytab.h: awkgram.c awkgram.h .NOMETA
proctab.c: maketab
${BTOOLSPATH:U.}/maketab awkgram.h > proctab.c
DEPENDOBJS+= maketab
build-tools: maketab
maketab: ytab.h maketab.c ${BUILD_TOOLS_META}

View File

@ -105,8 +105,8 @@ english.base: dump ${SCAN} #Makefile
sort -nu > $@
dump: dump.c ${BUILD_TOOLS_META}
${CC:N${CCACHE_BIN}} -o ${.TARGET} ${.ALLSRC}
DEPENDOBJS+= dump
dump: ${BUILD_TOOLS_META}
CLEANFILES+= dump ${CAT} english.base *.check __ck1 __ck2