From 8f734a631d29b825d3ee2b8649a247f9eb8d41b5 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Tue, 27 Feb 2018 22:07:06 -0500 Subject: [PATCH] Added dist-bin rule to Makefiles. --- Makefile | 5 ++++- Makefile.nx | 9 ++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8b26558..ec0215f 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,12 @@ export APP_VERSION := v2.0.0 -.PHONY: clean all nx pc +.PHONY: clean all nx pc dist-bin all: nx pc +dist-bin: + $(MAKE) -f Makefile.nx dist-bin + nx: $(MAKE) -f Makefile.nx diff --git a/Makefile.nx b/Makefile.nx index ef06331..1c1c64d 100644 --- a/Makefile.nx +++ b/Makefile.nx @@ -36,6 +36,8 @@ DATA := data INCLUDES := include EXEFS_SRC := exefs_src +DIST_PATH := $(TARGET)_$(APP_VERSION) + #--------------------------------------------------------------------------------- # options for code generation #--------------------------------------------------------------------------------- @@ -130,7 +132,7 @@ ifneq ($(APP_TITLEID),) export NACPFLAGS += --titleid=$(APP_TITLEID) endif -.PHONY: $(BUILD) clean all +.PHONY: $(BUILD) clean all dist-bin #--------------------------------------------------------------------------------- all: $(BUILD) @@ -144,6 +146,11 @@ clean: @echo clean ... @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