Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bsdinstall/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
OSNAME?= FreeBSD | OSNAME?= FreeBSD | ||||
SUBDIR= distextract distfetch partedit runconsoles scripts | SUBDIR= distextract distfetch partedit runconsoles scripts | ||||
SUBDIR_PARALLEL= | SUBDIR_PARALLEL= | ||||
SCRIPTS= bsdinstall | SCRIPTS= bsdinstall | ||||
MAN= bsdinstall.8 | MAN= bsdinstall.8 | ||||
PACKAGE= bsdinstall | PACKAGE= bsdinstall | ||||
GENHDRS= opt_osname.h | GENHDRS= opt_osname.h | ||||
SRCS+= ${GENHDRS} | SRCS+= ${GENHDRS} | ||||
CLEANFILES+= ${GENHDRS} | CLEANFILES+= ${GENHDRS} | ||||
SCRIPTS+= startbsdinstall | |||||
SCRIPTSDIR_startbsdinstall= ${LIBEXECDIR}/bsdinstall | |||||
opt_osname.h: .PHONY | opt_osname.h: .PHONY | ||||
if ! grep -q "^#define OSNAME \"${OSNAME}\"$"" ${.TARGET}; then \ | if ! grep -q "^#define OSNAME \"${OSNAME}\"$"" ${.TARGET}; then \ | ||||
echo "#define OSNAME \"${OSNAME}\"" > ${.TARGET}; \ | echo "#define OSNAME \"${OSNAME}\"" > ${.TARGET}; \ | ||||
fi | fi | ||||
.include <bsd.prog.mk> | .include <bsd.prog.mk> |