diff --git a/build/makefile_base.mak b/build/makefile_base.mak index 84cd9e24..14f0275a 100644 --- a/build/makefile_base.mak +++ b/build/makefile_base.mak @@ -239,7 +239,7 @@ all64_configure: $(addsuffix 64_configure,$(GOAL_TARGETS)) @echo ":: make $@ succeeded" ## -## install -- steps to finalize the install +## dist/install -- steps to finalize the install ## # FIXME Missing license step @@ -247,6 +247,8 @@ all64_configure: $(addsuffix 64_configure,$(GOAL_TARGETS)) $(DST_DIR): mkdir -p $@ +STEAM_DIR := $(HOME)/.steam/root + DIST_COPY_FILES := toolmanifest.vdf filelock.py proton user_settings.sample.py DIST_COPY_TARGETS := $(addprefix $(DST_BASE)/,$(DIST_COPY_FILES)) 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_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 ##