############################################################################### # # publish system update partition # # Copyright 2011 Nintendo. All rights reserved. # # These coded instructions, statements, and computer programs contain # proprietary information of Nintendo of America Inc. and/or Nintendo # Company Ltd., and are protected by Federal copyright law. They may # not be disclosed to third parties or copied or duplicated in any form, # in whole or in part, without the prior written consent of Nintendo. # ############################################################################### # figure out proper depth automatically MODULE_DEPTH := $(shell pwd | sed -e "s:$(CAFE_ROOT)/system/src/::" -e "s:[^/]\+:..:g") BUILD_MAKE_PATH := $(MODULE_DEPTH)/build/make include $(BUILD_MAKE_PATH)/commondefs.mk # Recognized targets called by meta-build .PHONY: default clean clobber # Default target default: publish ############################################################################### # # defines # ############################################################################### PUBLISH_ES_TITLE := $(CAFE_ROOT)/system/bin/tool/publishTitle.sh ifndef TITLE_SOURCE_DIR $(error Please specify TITLE_SOURCE_DIR) endif ifndef TITLE_DEST_DIR $(error Please specify TITLE_DEST_DIR) endif ifeq ($(GROUP_ACCESS), TRUE) ARGS_PUBLISH := -r endif ############################################################################### # # clean # ############################################################################### clean: $(_@)echo "------------------------------------------------------------------" ; \ echo "Clobbering published title packages" rm -Rf $(TITLE_DEST_DIR) ############################################################################### # # clobber # ############################################################################### clobber: clean ############################################################################### # # publish # ############################################################################### publish: $(TITLE_DEST_DIR) $(TITLE_DEST_DIR): $(TITLE_SOURCE_DIR) $(_@)echo "------------------------------------------------------------------" ; \ echo ">> Publishing $(notdir $@) from $< directory" $(_@)if [ ! -d "$ /dev/null ############################################################################### # # publish dependencies # ############################################################################### # Can be called from a parallelized build. Force serialization until tools can parallelize # This rule always applies to the entire makefile. Dependencies are ignored. .NOTPARALLEL: