Skip to content

Commit

Permalink
Added dist-bin rule to Makefiles.
Browse files Browse the repository at this point in the history
  • Loading branch information
yellows8 committed Feb 28, 2018
1 parent 1542a24 commit 8f734a6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
9 changes: 8 additions & 1 deletion Makefile.nx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ DATA := data
INCLUDES := include
EXEFS_SRC := exefs_src

DIST_PATH := $(TARGET)_$(APP_VERSION)

#---------------------------------------------------------------------------------
# options for code generation
#---------------------------------------------------------------------------------
Expand Down Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 8f734a6

Please sign in to comment.