1
0
mirror of https://github.com/cathery/sys-con.git synced 2024-12-25 18:15:39 +00:00
sys-con/Makefile

24 lines
707 B
Makefile
Raw Permalink Normal View History

.PHONY: all build clean
2020-03-10 18:23:10 +00:00
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)