X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/bd504ef0e0b883cdd7917b73b3574eb9ce669905..39236c6e673c41db228275375ab7fdb0f837b292:/bsd/kern/Makefile diff --git a/bsd/kern/Makefile b/bsd/kern/Makefile index c7eecbb12..2e14acc85 100644 --- a/bsd/kern/Makefile +++ b/bsd/kern/Makefile @@ -9,18 +9,15 @@ include $(MakeInc_def) INSTALL_SHARE_MISC_LIST = \ trace.codes -include $(MakeInc_rule) -include $(MakeInc_dir) - -SHARE_MISC_DIR = usr/share/misc - INSTALL_SHARE_MISC_FILES = \ - $(addprefix $(DSTROOT)/$(SHARE_MISC_DIR)/, $(INSTALL_SHARE_MISC_LIST)) + $(addprefix $(DSTROOT)/$(INSTALL_SHARE_MISC_DIR)/, $(INSTALL_SHARE_MISC_LIST)) -$(INSTALL_SHARE_MISC_FILES): $(DSTROOT)/$(SHARE_MISC_DIR)/% : % - @echo Installing $< in $(dir $@) - $(_v) $(MKDIR) $(DSTROOT)/$(SHARE_MISC_DIR); \ - $(RM) $(RMFLAGS) $@; \ - $(INSTALL) $(INSTALL_FLAGS) $< $(dir $@); +$(INSTALL_SHARE_MISC_FILES): $(DSTROOT)/$(INSTALL_SHARE_MISC_DIR)/% : % + $(_v)$(MKDIR) $(DSTROOT)/$(INSTALL_SHARE_MISC_DIR) + @echo INSTALL $(@F) + $(_v)$(INSTALL) $(INSTALL_FLAGS) $< $@ -do_build_install: $(INSTALL_SHARE_MISC_FILES) +do_build_install_primary:: $(INSTALL_SHARE_MISC_FILES) + +include $(MakeInc_rule) +include $(MakeInc_dir)