opendir change: refinement
[minix.git] / external / bsd / file / bin / Makefile
blobb395fd680380d3326a0b3cd7e21bf8a3790b4a0e
1 # $NetBSD: Makefile,v 1.1 2009/05/08 17:28:01 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 .if defined(__MINIX)
15 LDADD+= -L../lib
16 .endif
17 LDADD+= -lmagic -lz
18 DPADD+= ${LIBMAGIC} ${LIBZ}
19 MAN= file.1 magic.5
21 CLEANFILES+= magic.mgc
22 .if ${MKSHARE} != "no"
23 realall: file magic.mgc
24 .endif
26 .if ${MKSHARE} != "no"
27 magic.mgc: ${TOOL_MKMAGIC}
28 ${_MKTARGET_CREATE}
29 ${TOOL_MKMAGIC} -C -m ${DIST}/magic/magdir
30 @mv magdir.mgc ${.TARGET}
32 .else
33 magic.mgc:
34 .endif
36 .include <bsd.prog.mk>