upgrade to NetBSD CVS release from 2012/10/17 12:00:00 UTC Makefiles updates to imporve portability Made sure to be consistent in the usage of braces/parenthesis at least on a per file basis. For variables, it is recommended to continue to use braces.
36 lines
606 B
Makefile
36 lines
606 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
|
|
.if defined(__MINIX)
|
|
LDADD+= -L../lib
|
|
.endif
|
|
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>
|