Files
godot-csharp-vscode/Makefile
Raul Santos c8bd76bc90 Use local webpack
Use the locally installed `webpack` dependency. This way the `webpack`
dependency doesn't need to be installed globally and added to the PATH.
2021-09-22 13:37:03 +02:00

36 lines
815 B
Makefile

SOLUTION_DIR="./GodotDebugSession/"
GODOT_DEBUG_SESSION="./dist/GodotDebugSession/GodotDebugSession.exe"
all: package
@echo "vsix created"
package: build
./node_modules/.bin/vsce package
publish: build
./node_modules/.bin/vsce publish
build: $(GODOT_DEBUG_SESSION) tsc
@echo "build finished"
build-debug: $(GODOT_DEBUG_SESSION)-debug tsc-debug
@echo "build finished"
tsc:
./node_modules/.bin/tsc -p ./
./node_modules/.bin/webpack --mode production
tsc-debug:
./node_modules/.bin/tsc -p ./
./node_modules/.bin/webpack --mode development
$(GODOT_DEBUG_SESSION):
msbuild /p:Configuration=Release $(SOLUTION_DIR)/GodotDebugSession.sln
$(GODOT_DEBUG_SESSION)-debug:
msbuild /p:Configuration=Debug $(SOLUTION_DIR)/GodotDebugSession.sln
clean:
msbuild /t:Clean $(SOLUTION_DIR)/GodotDebugSession.sln