diff --git a/.gitignore b/.gitignore index 1c1e03b..5e2320a 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,6 @@ linux/ctroller 3DS/build linux/build linux/bin + +# build files +*.gz diff --git a/3DS/Makefile b/3DS/Makefile index e65ccec..b893f1f 100644 --- a/3DS/Makefile +++ b/3DS/Makefile @@ -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 @@ -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 @@ -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