mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-07-27 07:31:44 +03:00
makefile_base.mak: Add make install target
This commit is contained in:
parent
8a65ba1e7c
commit
94f38d6278
@ -239,7 +239,7 @@ all64_configure: $(addsuffix 64_configure,$(GOAL_TARGETS))
|
|||||||
@echo ":: make $@ succeeded"
|
@echo ":: make $@ succeeded"
|
||||||
|
|
||||||
##
|
##
|
||||||
## install -- steps to finalize the install
|
## dist/install -- steps to finalize the install
|
||||||
##
|
##
|
||||||
|
|
||||||
# FIXME Missing license step
|
# FIXME Missing license step
|
||||||
@ -247,6 +247,8 @@ all64_configure: $(addsuffix 64_configure,$(GOAL_TARGETS))
|
|||||||
$(DST_DIR):
|
$(DST_DIR):
|
||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
|
|
||||||
|
STEAM_DIR := $(HOME)/.steam/root
|
||||||
|
|
||||||
DIST_COPY_FILES := toolmanifest.vdf filelock.py proton user_settings.sample.py
|
DIST_COPY_FILES := toolmanifest.vdf filelock.py proton user_settings.sample.py
|
||||||
DIST_COPY_TARGETS := $(addprefix $(DST_BASE)/,$(DIST_COPY_FILES))
|
DIST_COPY_TARGETS := $(addprefix $(DST_BASE)/,$(DIST_COPY_FILES))
|
||||||
DIST_VERSION := $(DST_DIR)/version
|
DIST_VERSION := $(DST_DIR)/version
|
||||||
@ -286,6 +288,13 @@ dist: $(DIST_TARGETS) | $(WINE_OUT) $(filter $(MAKECMDGOALS),wine64 wine32 wine)
|
|||||||
WINEPREFIX=$(abspath $(DIST_PREFIX)) $(WINE_OUT_BIN) wineboot && \
|
WINEPREFIX=$(abspath $(DIST_PREFIX)) $(WINE_OUT_BIN) wineboot && \
|
||||||
WINEPREFIX=$(abspath $(DIST_PREFIX)) $(WINE_OUT_SERVER) -w
|
WINEPREFIX=$(abspath $(DIST_PREFIX)) $(WINE_OUT_SERVER) -w
|
||||||
|
|
||||||
|
install: dist
|
||||||
|
if [ ! -d $(STEAM_DIR) ]; then echo >&2 "!! "$(STEAM_DIR)" does not exist, cannot install"; return 1; fi
|
||||||
|
mkdir -p $(STEAM_DIR)/compatibilitytools.d/$(BUILD_NAME)
|
||||||
|
cp -a $(DST_BASE)/* $(STEAM_DIR)/compatibilitytools.d/$(BUILD_NAME)
|
||||||
|
@echo "Installed Proton to "$(STEAM_DIR)/compatibilitytools.d/$(BUILD_NAME)
|
||||||
|
@echo "You may need to restart Steam to select this tool"
|
||||||
|
|
||||||
##
|
##
|
||||||
## freetype
|
## freetype
|
||||||
##
|
##
|
||||||
|
Loading…
x
Reference in New Issue
Block a user