diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2001-08-17 17:21:38 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2001-08-17 17:21:38 +0000 |
commit | 1687fcd346c71468e6ab3dcd30511b84243c08a4 (patch) | |
tree | e6b321024140e338f08e1281f8ce168d24ff095e /usr.bin/file | |
parent | 1af57916ebf497b4b216ba4d675952bf682cb99b (diff) | |
download | src-test2-1687fcd346c71468e6ab3dcd30511b84243c08a4.tar.gz src-test2-1687fcd346c71468e6ab3dcd30511b84243c08a4.zip |
Notes
Diffstat (limited to 'usr.bin/file')
-rw-r--r-- | usr.bin/file/Makefile | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/usr.bin/file/Makefile b/usr.bin/file/Makefile index c823e184910b..b6a013169ec1 100644 --- a/usr.bin/file/Makefile +++ b/usr.bin/file/Makefile @@ -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 \ |