1
0
mirror of https://github.com/cathery/sys-con.git synced 2024-11-05 08:26:32 +00:00
sys-con/Makefile
2020-12-08 16:44:45 +03:00

28 lines
859 B
Makefile

.PHONY: all build clean mrproper
SOURCE_DIR := source
OUT_DIR := out
COMMON_DIR := common
all: build
@rm -rf $(OUT_DIR)
@mkdir -p $(OUT_DIR)/atmosphere/contents/690000000000000D/flags
@mkdir -p $(OUT_DIR)/config/sys-con
@mkdir -p $(OUT_DIR)/switch/
@touch $(OUT_DIR)/atmosphere/contents/690000000000000D/flags/boot2.flag
@cp $(SOURCE_DIR)/Sysmodule/sys-con.nsp $(OUT_DIR)/atmosphere/contents/690000000000000D/exefs.nsp
@cp $(SOURCE_DIR)/AppletCompanion/sys-con.nro $(OUT_DIR)/switch/sys-con.nro
@cp -r $(COMMON_DIR)/. $(OUT_DIR)/
@echo [DONE] sys-con compiled successfully. All files have been placed in $(OUT_DIR)/
build:
@$(MAKE) --no-print-directory -C $(SOURCE_DIR)
clean:
@$(MAKE) --no-print-directory -C $(SOURCE_DIR) clean
@rm -rf $(OUT_DIR)
mrproper:
@$(MAKE) --no-print-directory -C $(SOURCE_DIR) mrproper
@rm -rf $(OUT_DIR)