summaryrefslogtreecommitdiffstats
path: root/usr.bin/file/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/file/Makefile')
-rw-r--r--usr.bin/file/Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/file/Makefile b/usr.bin/file/Makefile
index 3a1e4b0..c55055e 100644
--- a/usr.bin/file/Makefile
+++ b/usr.bin/file/Makefile
@@ -29,13 +29,15 @@ SRCS= file.c apprentice.c fsmagic.c softmagic.c ascmagic.c \
# compress.c is_tar.c readelf.c internat.c print.c
MAGICPATH= /usr/share/misc
-MAGICMODE= 444
CFLAGS+= -DMAGIC='"${MAGICPATH}/magic"' -DBUILTIN_ELF -DELFCORE -DHAVE_CONFIG_H
CFLAGS+= -I${.CURDIR} -I${SRCDIR}
CLEANFILES+= magic magic.mgc magic.mime.mgc magic.mime.PITA
+FILES= magic magic.mgc ${SRCDIR}/magic.mime magic.mime.mgc
+FILESDIR= ${MAGICPATH}
+
MAGFILES= ${SRCDIR}/Header\
${SRCDIR}/Localstuff\
${SRCDIR}/Magdir/[a-z]*
@@ -59,9 +61,4 @@ mkmagic: apprentice.c print.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 \
- ${DESTDIR}${MAGICPATH}
-
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud