From 5fb18cce439ebe6d671bec86997a443a7284437d Mon Sep 17 00:00:00 2001 From: bapt Date: Fri, 19 Jun 2015 05:42:24 +0000 Subject: Install loader(8) and zfsloader(8) only once Differential Revision: https://reviews.freebsd.org/D2841 Reviewed by: imp --- sys/boot/Makefile | 2 ++ sys/boot/common/Makefile | 10 ++++++++++ sys/boot/common/Makefile.inc | 5 ----- sys/boot/i386/loader/Makefile | 1 + 4 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 sys/boot/common/Makefile (limited to 'sys/boot') diff --git a/sys/boot/Makefile b/sys/boot/Makefile index 2aa76b7..2607651 100644 --- a/sys/boot/Makefile +++ b/sys/boot/Makefile @@ -8,6 +8,8 @@ SUBDIR+= ficl SUBDIR+= forth .endif +SUBDIR+= common + .include # Pick the machine-dependent subdir based on the target architecture. diff --git a/sys/boot/common/Makefile b/sys/boot/common/Makefile new file mode 100644 index 0000000..fcca328 --- /dev/null +++ b/sys/boot/common/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.include + +MAN+= loader.8 +.if ${MK_ZFS} != "no" +MAN+= zfsloader.8 +.endif + +.include diff --git a/sys/boot/common/Makefile.inc b/sys/boot/common/Makefile.inc index 54e8617..d647fe3 100644 --- a/sys/boot/common/Makefile.inc +++ b/sys/boot/common/Makefile.inc @@ -68,8 +68,3 @@ CFLAGS+= -DBOOT_PROMPT_123 SRCS+= install.c CFLAGS+=-I${.CURDIR}/../../../../lib/libstand .endif - -MAN+= loader.8 -.if ${MK_ZFS} != "no" -MAN+= zfsloader.8 -.endif diff --git a/sys/boot/i386/loader/Makefile b/sys/boot/i386/loader/Makefile index 6e735a4..ade6054 100644 --- a/sys/boot/i386/loader/Makefile +++ b/sys/boot/i386/loader/Makefile @@ -5,6 +5,7 @@ MK_SSP= no LOADER?= loader PROG= ${LOADER}.sym +MAN= INTERNALPROG= NEWVERSWHAT?= "bootstrap loader" x86 -- cgit v1.1