1
0
mirror of https://github.com/cathery/sys-con.git synced 2024-12-28 00:17:13 +00:00
sys-con/Makefile
2020-03-10 21:23:10 +03:00

28 lines
783 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) -C $(SOURCE_DIR)
clean:
$(MAKE) -C $(SOURCE_DIR) clean
rm -rf $(OUT_DIR)
mrproper:
$(MAKE) -C $(SOURCE_DIR) mrproper
rm -rf $(OUT_DIR)