minix/external/bsd/file/bin/Makefile
Lionel Sambuc 08ff44c446 Reducing external/bsd/file differences
Change-Id: I0d025059ba0b200ac1162ea5a764fd756600ecd0
2013-04-12 13:25:18 +02:00

34 lines
560 B
Makefile

# $NetBSD: Makefile,v 1.1 2009/05/08 17:28:01 christos Exp $
.include <bsd.own.mk>
.include <bsd.sys.mk>
.include "../Makefile.inc"
.if ${MKSHARE} != "no"
FILESDIR= ${MFILESDIR}
FILES= ${MFILES}
.endif
PROG= file
LDADD+= -lmagic -lz
DPADD+= ${LIBMAGIC} ${LIBZ}
MAN= file.1 magic.5
CLEANFILES+= magic.mgc
.if ${MKSHARE} != "no"
realall: file magic.mgc
.endif
.if ${MKSHARE} != "no"
magic.mgc: ${TOOL_MKMAGIC}
${_MKTARGET_CREATE}
${TOOL_MKMAGIC} -C -m ${DIST}/magic/magdir
@mv magdir.mgc ${.TARGET}
.else
magic.mgc:
.endif
.include <bsd.prog.mk>