Added dist-bin rule to Makefiles.

This commit is contained in:
yellows8 2018-02-27 22:07:06 -05:00
parent 1542a249f0
commit 8f734a631d
2 changed files with 12 additions and 2 deletions

View File

@ -1,9 +1,12 @@
export APP_VERSION := v2.0.0 export APP_VERSION := v2.0.0
.PHONY: clean all nx pc .PHONY: clean all nx pc dist-bin
all: nx pc all: nx pc
dist-bin:
$(MAKE) -f Makefile.nx dist-bin
nx: nx:
$(MAKE) -f Makefile.nx $(MAKE) -f Makefile.nx

View File

@ -36,6 +36,8 @@ DATA := data
INCLUDES := include INCLUDES := include
EXEFS_SRC := exefs_src EXEFS_SRC := exefs_src
DIST_PATH := $(TARGET)_$(APP_VERSION)
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# options for code generation # options for code generation
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
@ -130,7 +132,7 @@ ifneq ($(APP_TITLEID),)
export NACPFLAGS += --titleid=$(APP_TITLEID) export NACPFLAGS += --titleid=$(APP_TITLEID)
endif endif
.PHONY: $(BUILD) clean all .PHONY: $(BUILD) clean all dist-bin
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
all: $(BUILD) all: $(BUILD)
@ -144,6 +146,11 @@ clean:
@echo clean ... @echo clean ...
@rm -fr $(BUILD) $(TARGET).pfs0 $(TARGET).nso $(TARGET).nro $(TARGET).nacp $(TARGET).elf @rm -fr $(BUILD) $(TARGET).pfs0 $(TARGET).nso $(TARGET).nro $(TARGET).nacp $(TARGET).elf
#---------------------------------------------------------------------------------
dist-bin: all
@mkdir -p $(DIST_PATH)
@cp $(OUTPUT).nro $(DIST_PATH)/hbmenu.nro
@zip -rj $(DIST_PATH).zip $(DIST_PATH)
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
else else