Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / file / bin / Makefile
blobbfef5d36d4cfe23d63a13bf9be8541acfc240775
1 # $NetBSD: Makefile,v 1.55 2008/08/30 12:26:17 christos Exp $
3 .include <bsd.own.mk>
4 .include <bsd.sys.mk>
6 .include "../Makefile.inc"
8 .if ${MKSHARE} != "no"
9 FILESDIR= ${MFILESDIR}
10 FILES= ${MFILES}
11 .endif
13 PROG= file
14 LDADD+= -lmagic -lz
15 DPADD+= ${LIBMAGIC} ${LIBZ}
16 MAN= file.1 magic.5
18 CLEANFILES+= magic.mgc
19 .if ${MKSHARE} != "no"
20 realall: file magic.mgc
21 .endif
23 .if ${MKSHARE} != "no"
24 magic.mgc: ${TOOL_MKMAGIC}
25 ${_MKTARGET_CREATE}
26 ${TOOL_MKMAGIC} -C -m ${DIST}/magic/magdir
27 @mv magdir.mgc ${.TARGET}
29 .else
30 magic.mgc:
31 .endif
33 .include <bsd.prog.mk>