mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2026-01-07 23:17:59 +01:00
Makefile: Add wrapper makefile for invoking vagrant
This commit is contained in:
parent
2e9e59bf59
commit
821a09cacd
2 changed files with 31 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -4,5 +4,4 @@
|
||||||
/obj-*
|
/obj-*
|
||||||
/syn-*
|
/syn-*
|
||||||
|
|
||||||
/Makefile
|
|
||||||
/vrclient_x64/vrclient_x64/Makefile
|
/vrclient_x64/vrclient_x64/Makefile
|
||||||
|
|
|
||||||
31
Makefile
Normal file
31
Makefile
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
# Makefile targets:
|
||||||
|
# vagrant - start Vagrant VM
|
||||||
|
# proton - build Proton
|
||||||
|
# install - install Proton into current user's Steam installation
|
||||||
|
# deploy - build deployment files into tagged directory
|
||||||
|
|
||||||
|
STEAM_DIR := $(HOME)/.steam/root
|
||||||
|
DEPLOY_DIR := $(shell git describe --tags --always)
|
||||||
|
|
||||||
|
all: proton
|
||||||
|
|
||||||
|
.PHONY: vagrant proton install proton_build deploy
|
||||||
|
|
||||||
|
vagrant:
|
||||||
|
vagrant up
|
||||||
|
vagrant rsync
|
||||||
|
|
||||||
|
proton: vagrant
|
||||||
|
vagrant ssh -c "make -C build/ dist"
|
||||||
|
echo "Proton built in VM. Use 'install' or 'deploy' targets to retrieve the build."
|
||||||
|
|
||||||
|
install: vagrant
|
||||||
|
vagrant ssh -c "make -C build/ STEAM_DIR=/vagrant/ install"
|
||||||
|
cp -R vagrant_share/compatibilitytools.d/ $(STEAM_DIR)
|
||||||
|
echo "Proton installed to your local Steam installation"
|
||||||
|
|
||||||
|
deploy: vagrant
|
||||||
|
vagrant ssh -c "make -C build/ deploy"
|
||||||
|
mkdir -p vagrant_share/$(DEPLOY_DIR)
|
||||||
|
vagrant ssh -c "cp -a build/deploy/* /vagrant/$(DEPLOY_DIR)"
|
||||||
|
echo "Proton deployed to vagrant_share/$(DEPLOY_DIR)"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue