xref: /freebsd/usr.sbin/bsdinstall/distextract/Makefile (revision edf8578117e8844e02c0121147f45e4609b30680)
1
2BINDIR= ${LIBEXECDIR}/bsdinstall
3PROG=	distextract
4CFLAGS+= -I${SRCTOP}/contrib/bsddialog/lib -I.
5LIBADD=	archive bsddialog m
6SRCS=	distextract.c
7
8MAN=
9GENHDRS=	opt_osname.h
10SRCS+=		${GENHDRS}
11CLEANFILES+=	${GENHDRS}
12
13opt_osname.h: .PHONY
14	if ! grep -q "^#define OSNAME \"${OSNAME}\"$"" ${.TARGET}; then \
15		echo "#define OSNAME \"${OSNAME}\"" > ${.TARGET}; \
16	fi
17
18.include <bsd.prog.mk>
19