Files
L4D2Fix/justfile
T
2024-12-02 12:07:36 +08:00

24 lines
501 B
Makefile

TEMPLATE_VER := "v1.0.0"
TARGET := "F:/Games/SteamLibrary/steamapps/common/Left 4 Dead 2"
# use `just preset=x64-release config build` to override this
preset := "x86-release-msvc"
target := "main"
[linux]
init:
bash ./scripts/init_linux.sh
clean:
rm -rf build
config:
cmake --preset {{preset}}
build:
cmake --build --preset {{preset}} --config Release
cp -f ./build/x86-release-msvc/bin/Release/kpatch.dll "{{TARGET}}/kpatch.asi"
@run:
./build/{{preset}}/bin/{{target}}