2019-02-05 17:04:53 +01:00
|
|
|
# "Quick start" Makefile targets:
|
2019-02-04 23:31:22 +01:00
|
|
|
# install - install Proton into current user's Steam installation
|
|
|
|
# deploy - build deployment files into tagged directory
|
2019-02-05 17:04:53 +01:00
|
|
|
#
|
|
|
|
# Development targts:
|
|
|
|
# vagrant - start Vagrant VM
|
|
|
|
# proton - build Proton
|
|
|
|
# module - build a single Wine module and copy into the shared directory.
|
|
|
|
# note: this is a development loop target. use it only after building all of wine with one of the other targets
|
|
|
|
# specify module variable: make module=kernel32 module
|
2019-02-04 23:31:22 +01:00
|
|
|
|
|
|
|
STEAM_DIR := $(HOME)/.steam/root
|
|
|
|
DEPLOY_DIR := $(shell git describe --tags --always)
|
2019-03-22 14:21:45 +01:00
|
|
|
CONFIGURE_CMD := ../proton/configure.sh --steam-runtime64=docker:steam-proton-dev --steam-runtime32=docker:steam-proton-dev32 --steam-runtime="$$HOME"/steam-runtime/runtime/
|
2019-02-04 23:31:22 +01:00
|
|
|
|
|
|
|
all: proton
|
|
|
|
|
2019-03-22 14:21:45 +01:00
|
|
|
.PHONY: vagrant clean configure proton install deploy module
|
2019-02-04 23:31:22 +01:00
|
|
|
|
|
|
|
vagrant:
|
|
|
|
vagrant up
|
|
|
|
vagrant rsync
|
|
|
|
|
2019-03-22 14:21:45 +01:00
|
|
|
clean: vagrant
|
|
|
|
vagrant ssh -c "rm -rf build/"
|
|
|
|
|
|
|
|
configure: vagrant
|
|
|
|
vagrant ssh -c 'if [ ! -e build ]; then mkdir build; (cd build && $(CONFIGURE_CMD)); fi'
|
|
|
|
|
|
|
|
proton: configure
|
2019-02-04 23:31:22 +01:00
|
|
|
vagrant ssh -c "make -C build/ dist"
|
|
|
|
echo "Proton built in VM. Use 'install' or 'deploy' targets to retrieve the build."
|
|
|
|
|
2019-03-22 14:21:45 +01:00
|
|
|
install: configure
|
2019-02-04 23:31:22 +01:00
|
|
|
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"
|
|
|
|
|
2019-03-22 14:21:45 +01:00
|
|
|
deploy: configure
|
2019-02-04 23:31:22 +01:00
|
|
|
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)"
|
2019-02-05 17:04:53 +01:00
|
|
|
|
2019-03-22 14:21:45 +01:00
|
|
|
module: configure
|
2019-02-05 17:04:53 +01:00
|
|
|
vagrant ssh -c "make -C build/ module=$(module) module"
|
|
|
|
mkdir -p vagrant_share/$(module)/lib{,64}/wine/
|
|
|
|
vagrant ssh -c "cp -a build/obj-wine32/dlls/$(module)/$(module)*.so /vagrant/$(module)/lib/wine/"
|
|
|
|
vagrant ssh -c "cp -a build/obj-wine64/dlls/$(module)/$(module)*.so /vagrant/$(module)/lib64/wine/"
|