X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0c530ab8987f0ae6a1a3d9284f40182b88852816..2d21ac55c334faf3a56e5634905ed6987fc787d4:/bsd/conf/tools/doconf/Makefile diff --git a/bsd/conf/tools/doconf/Makefile b/bsd/conf/tools/doconf/Makefile index 2bf0b7a10..7794a4ceb 100644 --- a/bsd/conf/tools/doconf/Makefile +++ b/bsd/conf/tools/doconf/Makefile @@ -16,7 +16,11 @@ INST_SUBDIRS = \ # Who and where # BINDIR= +ifneq ($(MACHINE_CONFIG), DEFAULT) +DSTDIR= $(strip $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)_$(MACHINE_CONFIG)/$(COMPONENT)/) +else DSTDIR= $(strip $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)/) +endif PROGRAM= $(DSTDIR)doconf # @@ -25,23 +29,19 @@ PROGRAM= $(DSTDIR)doconf IFLAGS= -c -m 555 $(PROGRAM): $(DSTDIR)% : $(SOURCE)%.csh - @echo "[ $(SOURCE) ] make setup_build_all $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"; - -$(RM) $(RMFLAGS) $(notdir $(PROGRAM)).VERS - sed -e "s/#PROGRAM.*/#`vers_string $(notdir $(PROGRAM))`/" \ + @-$(RM) $(RMFLAGS) $(notdir $(PROGRAM)).VERS + @sed -e "s/#PROGRAM.*/#`vers_string $(notdir $(PROGRAM))`/" \ < $< >$(notdir $(PROGRAM)).VERS; - install $(IFLAGS) $(notdir $(PROGRAM)).VERS $(PROGRAM); - -$(RM) $(RMFLAGS) $(notdir $(PROGRAM)).VERS; + @install $(IFLAGS) $(notdir $(PROGRAM)).VERS $(PROGRAM); + @-$(RM) $(RMFLAGS) $(notdir $(PROGRAM)).VERS; do_build_setup: $(PROGRAM) do_build_all: - @echo "[ $(SOURCE) ] make do_build_all $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)" setup_build_install: - @echo "[ $(SOURCE) ] make setup_build_all $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)" do_build_install: - @echo "[ $(SOURCE) ] make do_build_all $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)" include $(MakeInc_rule) include $(MakeInc_dir)