Skip to content

Commit

Permalink
Merge pull request #119 from R1kaB3rN/protonfixes-build
Browse files Browse the repository at this point in the history
build: add build target for protonfixes
  • Loading branch information
GloriousEggroll authored Aug 31, 2024
2 parents f6c59f8 + ae74ab2 commit 9f12f25
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -1329,6 +1329,23 @@ $(DIST_AV1_PATENTS): $(AV1_PATENTS)

all-dist: $(DIST_LICENSE) $(DIST_OFL_LICENSE) $(DIST_AV1_PATENTS)

##
## protonfixes
##

PROTONFIXES_TARGET := $(addprefix $(DST_BASE)/,protonfixes)
$(PROTONFIXES_TARGET): $(addprefix $(SRCDIR)/,protonfixes)

$(OBJ)/.build-protonfixes:
cd $(SRCDIR)/protonfixes && make
touch $(@)

$(PROTONFIXES_TARGET): $(OBJ)/.build-protonfixes
cd $(SRCDIR)/protonfixes && make install
cp -a $(SRCDIR)/protonfixes/dist/protonfixes $(PROTONFIXES_TARGET)
rm -r $(SRCDIR)/protonfixes/dist

all-dist: $(PROTONFIXES_TARGET)

##
## proton(.py), filelock.py, etc.
Expand All @@ -1346,12 +1363,8 @@ $(PROTON37_TRACKED_FILES_TARGET): $(addprefix $(SRCDIR)/,proton_3.7_tracked_file
USER_SETTINGS_PY_TARGET := $(addprefix $(DST_BASE)/,user_settings.sample.py)
$(USER_SETTINGS_PY_TARGET): $(addprefix $(SRCDIR)/,user_settings.sample.py)

PROTONFIXES_TARGET := $(addprefix $(DST_BASE)/,protonfixes)
$(PROTONFIXES_TARGET): $(addprefix $(SRCDIR)/,protonfixes)

DIST_COPY_TARGETS := $(FILELOCK_TARGET) $(PROTON_PY_TARGET) \
$(PROTON37_TRACKED_FILES_TARGET) $(USER_SETTINGS_PY_TARGET) \
$(PROTONFIXES_TARGET)
$(PROTON37_TRACKED_FILES_TARGET) $(USER_SETTINGS_PY_TARGET)

$(DIST_COPY_TARGETS): | $(DST_DIR)
cp -a $(SRCDIR)/$(notdir $@) $@
Expand Down

0 comments on commit 9f12f25

Please sign in to comment.