Makefile revision 1.14
1# $NetBSD: Makefile,v 1.14 2018/08/15 14:31:22 christos Exp $ 2 3HOSTPROGNAME= ${_TOOL_PREFIX}mandoc 4HOST_SRCDIR= external/bsd/mdocml/bin/mandoc 5 6.include <bsd.hostinit.mk> 7 8NETBSD_MINOR!= ${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh -n 9NETBSD_OSNAME= "NetBSD ${NETBSD_MINOR}" 10 11HOST_CPPFLAGS+= -DOSNAME=${NETBSD_OSNAME:Q} -DHAVE_CONFIG_H -I. 12HOST_CPPFLAGS+= -D_OPENBSD_SOURCE 13 14DPSRCS+= config.h 15 16CLEANFILES+= config.log config.h Makefile.local 17 18config.h: configure 19 SRCDIR=${DISTDIR} CC=${HOST_CC} ${HOST_SH} ${DISTDIR}/configure 20 21.include "${.CURDIR}/../Makefile.host" 22