aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bsdinstall/include/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bsdinstall/include/Makefile')
-rw-r--r--usr.sbin/bsdinstall/include/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/usr.sbin/bsdinstall/include/Makefile b/usr.sbin/bsdinstall/include/Makefile
new file mode 100644
index 000000000000..15f947defa9b
--- /dev/null
+++ b/usr.sbin/bsdinstall/include/Makefile
@@ -0,0 +1,13 @@
+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>