summaryrefslogtreecommitdiffstats
path: root/pygame/Makefile
blob: 492a0ce24940a425c4b8b6306da4e508202e7a97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.PHONY: all
all: deploy

#.PHONY: zipapp
#zipapp:
#	rm -rf /tmp/gamechestgui.zipapp
#	mkdir /tmp/gamechestgui.zipapp
#	pip3 install --target /tmp/gamechestgui.zipapp -r ../gamechestcli/requirements.txt
#	pip3 install --target /tmp/gamechestgui.zipapp -r requirements.txt
#	rsync -Pa ../gamechestcli/gamechest /tmp/gamechestgui.zipapp/.
#	rsync -Pa __main__.py profiledb.py /tmp/gamechestgui.zipapp/.
#	python3 -m zipapp -p "/usr/bin/env python3" /tmp/gamechestgui.zipapp
#	if [ -e ~/games/.saves ]; then mv /tmp/gamechestgui.pyz ~/games/.saves/tools/bin/. ; elif [ -e ~/game-saves ]; then mv /tmp/gamechestgui.pyz ~/game-saves/tools/bin/. ; fi

.PHONY: deploy
deploy:
	#rm -rf ~/games/.saves/tools/bin/libs/gamechestgui
	mkdir -p ~/games/.saves/tools/bin/libs/gamechestgui
	pip3 install -U --target ~/games/.saves/tools/bin/libs/gamechestgui -r ../gamechestcli/requirements.txt
	pip3 install -U --target ~/games/.saves/tools/bin/libs/gamechestgui -r requirements.txt
	rsync -Pa ../gamechestcli/gamechest ~/games/.saves/tools/bin/libs/gamechestgui/.
	rsync -Pa __init__.py profiledb.py ~/games/.saves/tools/bin/libs/gamechestgui/.