+ $(LIPO) $@ -replace $(subst -arch,,$(ARCH_FLAGS_$(ARCH_CONFIG))) $< -o $@; \
+ fi
+
+$(SYMROOT)$(INSTALL_FILE_DIR)mach.$(KERNEL_CONFIG_LC).$(MACHINE_CONFIG_LC): $(TARGET)/mach_kernel.sys force_file_install
+ @echo Installing $< in $@;
+ $(_v)if [ ! -e $(SYMROOT)$(INSTALL_FILE_DIR) ]; then \
+ $(MKDIR) $(SYMROOT)$(INSTALL_FILE_DIR); \
+ fi; \
+ if [ "`echo $(INSTALL_ARCHS_LC) | wc -w`" -eq 1 ]; then \
+ $(RM) $(RMFLAGS) $@; \
+ $(INSTALL) $(FILE_INSTALL_FLAGS) $< $@; \
+ if [ $(BUILD_DWARF) -eq 1 ]; then \
+ $(RM) -rf $@.dSYM; \
+ $(MKDIR) -p -m 0755 $@.dSYM/$(DSYMBUILDDIR); \
+ $(INSTALL) $(INSTALL_FLAGS) \
+ $<.dSYM/$(DSYMBUILDDIR)/$(notdir $<) \
+ $@.dSYM/$(DSYMBUILDDIR)/$(notdir $@); \
+ fi; \
+ else \
+ if [ ! -e $@ ]; then \
+ printf "" >empty_file_$(notdir $@); \
+ lipo_arg="$(foreach lipo_arch,$(INSTALL_ARCHS),$(ARCH_FLAGS_$(lipo_arch)) empty_file_$(notdir $@))"; \
+ $(LIPO) $${lipo_arg} -create -output $@; \
+ $(RM) $(RMFLAGS) empty_file_$(notdir $@); \
+ fi; \
+ $(LIPO) $@ -replace $(subst -arch,,$(ARCH_FLAGS_$(ARCH_CONFIG))) $< -o $@; \
+ fi
+
+endif # mach_kernel-specific build rules
+
+#
+# Generic Install rules
+#
+INSTALL_FILE_FILES = $(addprefix $(DSTROOT)$(INSTALL_FILE_DIR), $(INSTALL_FILE_LIST))
+INSTALL_FILE_FILES_GENERIC = $(filter-out $(DSTROOT)$(INSTALL_FILE_DIR)mach.$(KERNEL_CONFIG_LC).$(MACHINE_CONFIG_LC), $(INSTALL_FILE_FILES))
+
+force_file_install:
+
+$(INSTALL_FILE_FILES_GENERIC): $(DSTROOT)$(INSTALL_FILE_DIR)% : $(TARGET)/% force_file_install
+ @echo Installing $< in $@;
+ $(_v)if [ ! -e $(DSTROOT)$(INSTALL_FILE_DIR) ]; then \
+ $(MKDIR) $(DSTROOT)$(INSTALL_FILE_DIR); \
+ fi; \
+ if [ "`echo $(INSTALL_ARCHS_LC) | wc -w`" -eq 1 ]; then \
+ $(RM) $(RMFLAGS) $@; \
+ $(INSTALL) $(FILE_INSTALL_FLAGS) $< $@; \
+ else \
+ if [ ! -e $@ ]; then \
+ printf "" >empty_file_$(notdir $@); \
+ lipo_arg="$(foreach lipo_arch,$(INSTALL_ARCHS),$(ARCH_FLAGS_$(lipo_arch)) empty_file_$(notdir $@))"; \
+ $(LIPO) $${lipo_arg} -create -output $@; \
+ $(RM) $(RMFLAGS) empty_file_$(notdir $@); \
+ fi; \
+ $(LIPO) $@ -replace $(subst -arch,,$(ARCH_FLAGS_$(ARCH_CONFIG))) $< -o $@; \