mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-02 12:20:51 +00:00
Use a build-tool to create the .mgc files.
Submitted by: ru (partial) Obtained from: NetBSD (basic idea) Reviewed by: bde, ru
This commit is contained in:
parent
1af57916eb
commit
1687fcd346
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81845
@ -600,7 +600,8 @@ _libkrb5= kerberos5/lib/libasn1 kerberos5/lib/libhdb kerberos5/lib/libsl
|
||||
|
||||
build-tools:
|
||||
.for _tool in bin/csh bin/sh ${_games} gnu/usr.bin/cc/cc_tools ${_fortran} \
|
||||
${_libroken4} ${_libkrb5} lib/libncurses ${_share} usr.sbin/sysinstall
|
||||
${_libroken4} ${_libkrb5} lib/libncurses ${_share} usr.bin/file \
|
||||
usr.sbin/sysinstall
|
||||
cd ${.CURDIR}/${_tool}; ${MAKE} build-tools
|
||||
.endfor
|
||||
|
||||
|
@ -40,23 +40,29 @@ MAGFILES= ${SRCDIR}/Header\
|
||||
${SRCDIR}/Localstuff\
|
||||
${SRCDIR}/Magdir/[a-z]*
|
||||
|
||||
all: file magic magic.mgc magic.mime.mgc
|
||||
all: ${PROG} magic.mgc magic.mime.mgc
|
||||
|
||||
magic: ${MAGFILES}
|
||||
cat ${.ALLSRC} > ${.TARGET}
|
||||
|
||||
magic.mgc: file magic
|
||||
./${PROG} -C -m magic
|
||||
magic.mgc: mkmagic magic
|
||||
./mkmagic magic
|
||||
|
||||
magic.mime.mgc: file magic.mime
|
||||
magic.mime.mgc: mkmagic magic.mime
|
||||
ln -sf ${SRCDIR}/magic.mime magic.mime.PITA
|
||||
./${PROG} -C -m magic.mime.PITA
|
||||
./mkmagic magic.mime.PITA
|
||||
mv magic.mime.PITA.mgc magic.mime.mgc
|
||||
|
||||
CLEANFILES+= print-hacked.c
|
||||
print-hacked.c: print.c
|
||||
sed -e 's|daylight|0/*daylight*/|g' ${.ALLSRC} > ${.TARGET}
|
||||
|
||||
CLEANFILES+= mkmagic
|
||||
build-tools: mkmagic
|
||||
mkmagic: apprentice.c print-hacked.c
|
||||
${CC} -DHAVE_CONFIG_H -DCOMPILE_ONLY \
|
||||
-I${.CURDIR} -I${SRCDIR} -o ${.TARGET} ${.ALLSRC}
|
||||
|
||||
beforeinstall:
|
||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${MAGICMODE} \
|
||||
magic magic.mgc ${SRCDIR}/magic.mime magic.mime.mgc \
|
||||
|
Loading…
Reference in New Issue
Block a user