Skip to content
This repository has been archived by the owner on Sep 29, 2021. It is now read-only.

Commit

Permalink
Add target to create distribution tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
phijor committed May 17, 2016
1 parent 35c05a5 commit c4bbce7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ linux/ctroller
3DS/build
linux/build
linux/bin

# build files
*.gz
11 changes: 9 additions & 2 deletions 3DS/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ ifneq ($(ROMFS),)
export _3DSXFLAGS += --romfs=$(CURDIR)/$(ROMFS)
endif

.PHONY: $(BUILD) clean all run install
.PHONY: $(BUILD) clean all run install dist

#---------------------------------------------------------------------------------
all: release
Expand All @@ -175,7 +175,8 @@ $(BUILD):
#---------------------------------------------------------------------------------
clean:
@$(call bold,"Cleaning...")
@rm -fr $(BUILD) $(OUTPUT).3dsx $(OUTPUT).smdh $(OUTPUT).elf $(OUTPUT).cia
@rm -fr $(BUILD) $(OUTPUT).{3dsx,smdh,elf,cia} \
$(TARGET)-$(VERSION_STRING).tar{,.gz}

#---------------------------------------------------------------------------------
run: debug
Expand All @@ -201,6 +202,12 @@ $(OUTPUT).cia: $(BUILD)
-icon $(ICON_TMP) -banner $(BANNER_TMP)
@echo "Created CIA \"$@\""

#---------------------------------------------------------------------------------
dist: release
@$(call bold,"Creating distribution-tarball ($(VERSION_STRING))...")
@tar -cvf $(TARGET)-$(VERSION_STRING).tar $(TARGET).{cia,3dsx,smdh}
@gzip -f $(TARGET)-$(VERSION_STRING).tar

#---------------------------------------------------------------------------------
else

Expand Down

0 comments on commit c4bbce7

Please sign in to comment.