mirror of
https://github.com/cathery/sys-con.git
synced 2025-01-30 03:32:36 +00:00
Update makefile targets
This commit is contained in:
parent
b7d6da217a
commit
5afe0ac4dd
27
.vscode/tasks.json
vendored
27
.vscode/tasks.json
vendored
@ -5,7 +5,7 @@
|
||||
"label": "Build Release",
|
||||
"type": "shell",
|
||||
"promptOnClose": true,
|
||||
"command": "make -j4",
|
||||
"command": "make -j8",
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "shared"
|
||||
@ -27,7 +27,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Clean",
|
||||
"label": "Clean only the project files",
|
||||
"type": "shell",
|
||||
"promptOnClose": true,
|
||||
"command": "make clean",
|
||||
@ -35,17 +35,18 @@
|
||||
"reveal": "always",
|
||||
"panel": "shared"
|
||||
},
|
||||
"problemMatcher": {
|
||||
"owner": "cpp",
|
||||
"pattern": {
|
||||
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
|
||||
"file": 1,
|
||||
"line": 2,
|
||||
"column": 3,
|
||||
"severity": 4,
|
||||
"message": 5
|
||||
}
|
||||
}
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Clean everything",
|
||||
"type": "shell",
|
||||
"promptOnClose": true,
|
||||
"command": "make mrproper",
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "shared"
|
||||
},
|
||||
"problemMatcher": []
|
||||
}
|
||||
]
|
||||
}
|
35
Makefile
35
Makefile
@ -1,19 +1,28 @@
|
||||
.PHONY: all build clean
|
||||
.PHONY: all build clean mrproper
|
||||
|
||||
SOURCE_DIR := source
|
||||
OUT_DIR := out
|
||||
COMMON_DIR := common
|
||||
|
||||
all: build
|
||||
rm -rf out
|
||||
mkdir -p out/atmosphere/contents/690000000000000D/flags
|
||||
mkdir -p out/config/sys-con
|
||||
mkdir -p out/switch/
|
||||
touch out/atmosphere/contents/690000000000000D/flags/boot2.flag
|
||||
cp source/Sysmodule/sys-con.nsp out/atmosphere/contents/690000000000000D/exefs.nsp
|
||||
cp source/AppletCompanion/sys-con.nro out/switch/sys-con.nro
|
||||
cp -r common/. out/
|
||||
@echo [DONE] sys-con compiled successfully. All files have been placed in out/
|
||||
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/
|
||||
$(MAKE) -C $(SOURCE_DIR)
|
||||
|
||||
clean:
|
||||
$(MAKE) -C source/ clean
|
||||
rm -rf out
|
||||
$(MAKE) -C $(SOURCE_DIR) clean
|
||||
rm -rf $(OUT_DIR)
|
||||
|
||||
mrproper:
|
||||
$(MAKE) -C $(SOURCE_DIR) mrproper
|
||||
rm -rf $(OUT_DIR)
|
||||
|
@ -1,5 +1,5 @@
|
||||
COMPONENTS := libstratosphere AppletCompanion Sysmodule
|
||||
TOPTARGETS := all clean
|
||||
TOPTARGETS := all clean mrproper
|
||||
|
||||
.PHONY: $(TOPTARGETS) $(COMPONENTS)
|
||||
|
||||
@ -17,4 +17,6 @@ Sysmodule: libstratosphere
|
||||
clean:
|
||||
$(MAKE) -C AppletCompanion clean
|
||||
$(MAKE) -C Sysmodule clean
|
||||
|
||||
mrproper: clean
|
||||
$(MAKE) -C libstratosphere clean
|
Loading…
x
Reference in New Issue
Block a user