place godot3 in Makefile
This commit is contained in:
parent
f87abc0631
commit
12e6d9b216
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,3 +2,5 @@
|
||||
*.pdf
|
||||
rubbish/
|
||||
.godot/
|
||||
.checksum.txt
|
||||
bins
|
||||
|
35
Makefile
35
Makefile
@ -3,12 +3,21 @@ help:
|
||||
@echo "\tmake pdf"
|
||||
@echo "\tmake creature"
|
||||
@echo "\tmake show"
|
||||
@echo "\tmake install-godot"
|
||||
@echo "\tmake uninstall-godot"
|
||||
@echo "\tmake check (to check your dependencies)"
|
||||
@echo "\tsudo make install-godot"
|
||||
@echo "\tsudo make uninstall-godot"
|
||||
|
||||
.PHONY: pdf
|
||||
pdf: overview.pdf
|
||||
|
||||
.PHONY: check
|
||||
check:
|
||||
@which lowdown >/dev/null || echo 'install lowdown (optional)'
|
||||
@which git-lfs >/dev/null || echo 'install git-lfs'
|
||||
@which pdflatex >/dev/null || echo 'install pdflatex (optional)'
|
||||
@which less >/dev/null || echo 'install less (you absolute cave-man)'
|
||||
@godot --version | grep -q '3.2' || echo 'install godot version 3.2.3 using "make install-godot"'
|
||||
|
||||
rubbish/:
|
||||
mkdir rubbish
|
||||
|
||||
@ -44,13 +53,17 @@ $(COLLECTION): overview.md World
|
||||
@./parse.sh Mechanics/Stats.md >> $(COLLECTION)
|
||||
@lowdown -sTterm $(COLLECTION) | less -R
|
||||
|
||||
install-godot: Godot_v4.2.2-stable_linux.x86_64
|
||||
install -m 755 Godot_v4.2.2-stable_linux.x86_64 /usr/local/bin/godot
|
||||
rm Godot_v4.2.2-stable_linux.x86_64.zip
|
||||
rm Godot_v4.2.2-stable_linux.x86_64
|
||||
Godot_v4.2.2-stable_linux.x86_64:
|
||||
wget https://github.com/godotengine/godot/releases/download/4.2.2-stable/Godot_v4.2.2-stable_linux.x86_64.zip
|
||||
unzip Godot_v4.2.2-stable_linux.x86_64.zip
|
||||
bins/:
|
||||
@mkdir -p bins
|
||||
.checksum.txt:
|
||||
curl https://downloads.tuxfamily.org/godotengine/3.2.3/SHA512-SUMS.txt | grep x11.64 > .checksum.txt
|
||||
Godot_v3.2.3-stable_x11.64: .checksum.txt bins/
|
||||
wget https://downloads.tuxfamily.org/godotengine/3.2.3/Godot_v3.2.3-stable_x11.64.zip
|
||||
sha512sum -c .checksum.txt
|
||||
mv Godot_v3.2.3-stable_x11.64.zip bins/
|
||||
cd bins/ && unzip Godot_v3.2.3-stable_x11.64.zip
|
||||
install-godot: Godot_v3.2.3-stable_x11.64
|
||||
install -m 755 bins/Godot_v3.2.3-stable_x11.64 /usr/local/bin/godot
|
||||
|
||||
.PHONY: uninstall-godot
|
||||
uninstall-godot:
|
||||
@ -58,4 +71,6 @@ uninstall-godot:
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
$(RM) -r rubbish overview.tex $(COLLECTION)
|
||||
$(RM) -r rubbish overview.tex $(COLLECTION) \
|
||||
.checksum.txt \
|
||||
bins
|
||||
|
Loading…
Reference in New Issue
Block a user