NetBSD/usr.bin/xinstall/Makefile
rillig 5a14d4c6bd install(1): copy metachar table from usr.bin/make
It is not worth having a dependency on usr.bin/make just for including
this small table.  The header file usr.bin/make/make.h, which is
included for consistency with the rest of the usr.bin/make code, is
using inline functions a lot and refers to several parts of make that
are completely irrelevant to usr.bin/install.
2020-10-30 20:05:00 +00:00

26 lines
490 B
Makefile

# $NetBSD: Makefile,v 1.29 2020/10/30 20:05:00 rillig Exp $
# @(#)Makefile 8.1 (Berkeley) 6/6/93
.include <bsd.own.mk>
PROG= xinstall
SRCS= xinstall.c getid.c
MAN= install.1
.PATH: ${NETBSDSRCDIR}/usr.sbin/mtree
CPPFLAGS+= -I${NETBSDSRCDIR}/usr.sbin/mtree
.if (${HOSTPROG:U} == "")
CPPFLAGS+= -DHAVE_POSIX_SPAWN
DPADD+= ${LIBUTIL}
LDADD+= -lutil
.endif
COPTS.xinstall.c += -Wno-format-nonliteral
PROGNAME=install
CWARNFLAGS.gcc+= ${GCC_NO_FORMAT_TRUNCATION}
.include <bsd.prog.mk>