Index: head/stand/efi/Makefile =================================================================== --- head/stand/efi/Makefile (revision 330248) +++ head/stand/efi/Makefile (revision 330249) @@ -1,19 +1,16 @@ # $FreeBSD$ NO_OBJ=t .include # In-tree GCC does not support __attribute__((ms_abi)), but gcc newer # than 4.5 supports it. .if ${COMPILER_TYPE} != "gcc" || ${COMPILER_VERSION} >= 40500 -.if ${MK_FDT} != "no" -SUBDIR+= fdt -.endif - +SUBDIR.${MK_FDT}+= fdt SUBDIR+= libefi loader boot1 .endif # ${COMPILER_TYPE} != "gcc" || ${COMPILER_VERSION} >= 40500 .include Index: head/stand/i386/Makefile =================================================================== --- head/stand/i386/Makefile (revision 330248) +++ head/stand/i386/Makefile (revision 330249) @@ -1,27 +1,23 @@ # $FreeBSD$ NO_OBJ=t .include SUBDIR= mbr pmbr boot0 boot0sio btx boot2 cdboot gptboot \ libi386 -.if ${MK_LOADER_FIREWIRE} == "yes" -SUBDIR+= libfirewire -.endif +SUBDIR.${MK_LOADER_FIREWIRE}+= libfirewire SUBDIR+= loader # special boot programs, 'self-extracting boot2+loader' SUBDIR+= pxeldr .if ${MACHINE_CPUARCH} == "i386" SUBDIR+= kgzldr .endif -.if ${MK_ZFS} != "no" -SUBDIR+= zfsboot gptzfsboot zfsloader -.endif +SUBDIR.${MK_ZFS}+= zfsboot gptzfsboot zfsloader .include Index: head/stand/powerpc/Makefile =================================================================== --- head/stand/powerpc/Makefile (revision 330248) +++ head/stand/powerpc/Makefile (revision 330249) @@ -1,12 +1,10 @@ # $FreeBSD$ NO_OBJ=t .include SUBDIR= boot1.chrp ofw uboot -.if ${MK_FDT} == "yes" -SUBDIR+= kboot -.endif +SUBDIR.${MK_FDT}+= kboot .include Index: head/stand/sparc64/Makefile =================================================================== --- head/stand/sparc64/Makefile (revision 330248) +++ head/stand/sparc64/Makefile (revision 330249) @@ -1,12 +1,10 @@ # $FreeBSD$ NO_OBJ=t .include SUBDIR= boot1 loader -.if ${MK_ZFS} != "no" -SUBDIR+=zfsboot zfsloader -.endif +SUBDIR.${MK_ZFS}+=zfsboot zfsloader .include Index: head/stand/uboot/Makefile =================================================================== --- head/stand/uboot/Makefile (revision 330248) +++ head/stand/uboot/Makefile (revision 330249) @@ -1,11 +1,9 @@ # $FreeBSD$ .include SUBDIR= lib -.if ${MK_FDT} != "no" -SUBDIR+=fdt -.endif +SUBDIR.${MK_FDT}+=fdt .include