Put RebuildTarget into own file

This commit is contained in:
Jaby Blubb 2023-04-30 15:33:12 +02:00
parent bf0ae11a53
commit 70142ba64f
3 changed files with 16 additions and 4 deletions

View File

@ -23,6 +23,18 @@
} }
} }
}, },
{
"label": "build assets",
"type": "shell",
"command": "wsl make ${input:target} BUILD_PROFILE=${input:build profile} JABY_ENGINE_DIR=$(wslpath ${env:JABY_ENGINE_PATH})",
"group": "build",
"options": {
"cwd": "assets",
"env": {
"PATH": "${env:JABY_ENGINE_PATH}/bin;${env:PATH}"
}
}
},
{ {
"label": "cdgen", "label": "cdgen",
"type": "shell", "type": "shell",

View File

@ -87,10 +87,7 @@ $(OUTPUT_DIR)/%.o: $$(subst !super,..,%.s)
@mkdir -p $(dir $@) @mkdir -p $(dir $@)
$(CC) $(ARCHFLAGS) -I$(PCSX_REDUX) -g -c -o $@ $< $(CC) $(ARCHFLAGS) -I$(PCSX_REDUX) -g -c -o $@ $<
#Rules section for default compilation and linking include $(SELF_DIR)RebuildTarget.mk
rebuild:
$(MAKE) clean
$(MAKE) all
#Inclusion of dependencies (object files to source and includes) #Inclusion of dependencies (object files to source and includes)
-include $(OBJS:%.o=%.d) -include $(OBJS:%.o=%.d)

3
lib/RebuildTarget.mk Normal file
View File

@ -0,0 +1,3 @@
rebuild:
$(MAKE) clean
$(MAKE) all