freebsd-src/usr.sbin/bsdinstall/include/Makefile
Simon J. Gerraty 83d0b8c089 bsdinstall generate opt_osname.h in include
This allows the subdirs that do more work to run in parallel

Reviewed by:	jrtc27
Differential Revision:	https://reviews.freebsd.org/D42947
2023-12-06 18:34:52 -08:00

13 lines
292 B
Makefile

OSNAME?= FreeBSD
GENHDRS= opt_osname.h
SRCS+= ${GENHDRS}
CLEANFILES+= ${GENHDRS}
opt_osname.h: ${META_NOPHONY}
@if ! grep -q "^#define OSNAME \"${OSNAME}\"$"" ${.TARGET} 2> /dev/null; then \
echo "#define OSNAME \"${OSNAME}\"" > ${.TARGET}; \
fi
MK_STAGING= no
.include <bsd.prog.mk>