diff options
author | obrien <obrien@FreeBSD.org> | 2001-08-08 16:10:16 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-08-08 16:10:16 +0000 |
commit | b8f4f229906786273583c7f9fdf22eae23ad2c5c (patch) | |
tree | 489569d4cdd0a8c0aba89f337d022b873df526a9 /usr.bin/file | |
parent | 1e95bfdcca4f22baf09b59b493d2948f90b8c282 (diff) | |
download | FreeBSD-src-b8f4f229906786273583c7f9fdf22eae23ad2c5c.zip FreeBSD-src-b8f4f229906786273583c7f9fdf22eae23ad2c5c.tar.gz |
Support the new "-i" (output MIME type strings) option by installing
the MIME files (both regular and precompiled).
Diffstat (limited to 'usr.bin/file')
-rw-r--r-- | usr.bin/file/Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/usr.bin/file/Makefile b/usr.bin/file/Makefile index 64e37c9..c4265b9 100644 --- a/usr.bin/file/Makefile +++ b/usr.bin/file/Makefile @@ -40,13 +40,13 @@ SRCS= file.c apprentice.c fsmagic.c softmagic.c ascmagic.c \ MAN= file.1 magic.5 -CLEANFILES+= magic magic.mgc +CLEANFILES+= magic magic.mgc magic.mime.mgc magic.mime.PITA MAGFILES= ${SRCDIR}/Header\ ${SRCDIR}/Localstuff\ ${SRCDIR}/Magdir/[a-z]* -all: file magic magic.mgc +all: file magic magic.mgc magic.mime.mgc magic: $(MAGFILES) cat $(MAGFILES) > $(.TARGET) @@ -54,6 +54,11 @@ magic: $(MAGFILES) magic.mgc: file magic ./$(PROG) -C -m magic +magic.mime.mgc: file magic.mime + ln -sf $(SRCDIR)/magic.mime magic.mime.PITA + ./$(PROG) -C -m 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} @@ -63,5 +68,9 @@ beforeinstall: magic $(DESTDIR)$(MAGICFILE) $(INSTALL) $(COPY) -o $(BINOWN) -g $(BINGRP) -m $(MAGICMODE) \ magic.mgc $(DESTDIR)$(MAGICFILE).mgc + $(INSTALL) $(COPY) -o $(BINOWN) -g $(BINGRP) -m $(MAGICMODE) \ + $(SRCDIR)/magic.mime $(DESTDIR)$(MAGICFILE).mime + $(INSTALL) $(COPY) -o $(BINOWN) -g $(BINGRP) -m $(MAGICMODE) \ + magic.mime.mgc $(DESTDIR)$(MAGICFILE).mime.mgc .include <bsd.prog.mk> |