diff options
-rw-r--r-- | backends/platform/3ds/3ds.mk | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/backends/platform/3ds/3ds.mk b/backends/platform/3ds/3ds.mk index c6aff90516..136e9844d9 100644 --- a/backends/platform/3ds/3ds.mk +++ b/backends/platform/3ds/3ds.mk @@ -14,7 +14,7 @@ CXXFLAGS += -std=gnu++11 ASFLAGS += -mfloat-abi=hard LDFLAGS += -specs=3dsx.specs $(ARCH) -L$(DEVKITPRO)/libctru/lib -L$(DEVKITPRO)/portlibs/3ds/lib -.PHONY: clean_3ds +.PHONY: clean_3ds dist_3ds clean: clean_3ds @@ -26,6 +26,7 @@ clean_3ds: $(RM) $(TARGET).bnr $(RM) $(TARGET).cia $(RM) -rf romfs + $(RM) -rf dist_3ds romfs: $(DIST_FILES_THEMES) $(DIST_FILES_ENGINEDATA) $(DIST_FILES_NETWORKING) $(DIST_FILES_VKEYBD) $(DIST_3DS_EXTRA_FILES) @rm -rf romfs @@ -60,6 +61,14 @@ $(TARGET).cia: $(EXECUTABLE) $(APP_RSF) $(TARGET).smdh $(TARGET).bnr romfs @makerom -f cia -target t -exefslogo -o $@ -elf $(EXECUTABLE) -rsf $(APP_RSF) -banner $(TARGET).bnr -icon $(TARGET).smdh -DAPP_ROMFS=romfs/ @echo built ... $(notdir $@) +dist_3ds: $(TARGET).cia $(TARGET).3dsx $(DIST_FILES_DOCS) + @rm -rf dist_3ds + @mkdir -p dist_3ds + @cp $(TARGET).3dsx $(TARGET).cia dist_3ds/ + @cp $(DIST_FILES_DOCS) dist_3ds/ + @cp $(srcdir)/backends/platform/3ds/README.md dist_3ds/README-3DS.md + @echo built ... $(notdir $@) + #--------------------------------------------------------------------------------- # rules for assembling GPU shaders #--------------------------------------------------------------------------------- |