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