oh-my-git/Makefile

42 lines
1.2 KiB
Makefile
Raw Permalink Normal View History

2021-02-05 15:00:13 +01:00
name = "oh-my-git"
2020-01-29 20:25:13 +01:00
2020-10-20 10:54:33 +02:00
all: linux macos windows
2020-01-29 20:25:13 +01:00
2023-09-07 10:14:07 +02:00
.PHONY: web
2020-01-29 20:25:13 +01:00
linux:
2020-10-20 10:54:33 +02:00
mkdir -p build/$(name)-linux
2023-09-07 10:14:07 +02:00
godot --export-debug "Linux" "build/$(name)-linux/$(name)"
cd build/$(name)-linux && zip -r ../$(name)-linux.zip *
2020-01-29 20:25:13 +01:00
macos:
2020-10-20 10:54:33 +02:00
mkdir -p build
2023-09-07 10:14:07 +02:00
godot --export-debug "Mac OS" "build/$(name)-macos.zip"
2020-01-29 20:25:13 +01:00
windows: dependencies/windows/git/
2020-10-20 10:54:33 +02:00
mkdir -p build/$(name)-windows
# We're using the debug template here so that the bash.exe doesn't spawn a cmd.exe each time...
godot --export-debug "Windows" "build/$(name)-windows/$(name).exe"
2020-10-20 10:54:33 +02:00
cp -r --parents dependencies/windows/git/ build/$(name)-windows/
cd build/$(name)-windows && zip -r ../$(name)-windows.zip *
2020-01-29 20:25:13 +01:00
2023-09-07 10:14:07 +02:00
web:
mkdir -p build/$(name)-web
godot --export-debug "Web" "build/$(name)-web/index.html"
cp -r web/web-shell/ build/$(name)-web/
2020-10-20 10:54:33 +02:00
clean-unzipped:
cd build && ls | grep -v '\.zip$$' | xargs rm -r
clean:
rm -rf build dependencies cache
# Dependencies:
cache/portablegit.7z.exe:
2020-10-20 10:54:33 +02:00
mkdir -p cache
wget https://github.com/git-for-windows/git/releases/download/v2.28.0.windows.1/PortableGit-2.28.0-64-bit.7z.exe -O cache/portablegit.7z.exe
dependencies/windows/git/: cache/portablegit.7z.exe
2020-10-20 10:54:33 +02:00
7zr x cache/portablegit.7z.exe -odependencies/windows/git/ -y