1
0
mirror of https://github.com/cathery/sys-con.git synced 2024-11-16 23:11:25 +00:00
sys-con/Makefile

28 lines
783 B
Makefile
Raw Normal View History

2020-03-10 18:23:10 +00:00
.PHONY: all build clean mrproper
SOURCE_DIR := source
OUT_DIR := out
COMMON_DIR := common
2020-01-12 02:01:44 +00:00
all: build
2020-03-10 18:23:10 +00:00
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)/
2020-01-12 02:01:44 +00:00
build:
2020-03-10 18:23:10 +00:00
$(MAKE) -C $(SOURCE_DIR)
2020-01-12 02:01:44 +00:00
clean:
2020-03-10 18:23:10 +00:00
$(MAKE) -C $(SOURCE_DIR) clean
rm -rf $(OUT_DIR)
mrproper:
$(MAKE) -C $(SOURCE_DIR) mrproper
rm -rf $(OUT_DIR)