mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-04-16 22:32:37 +03:00
makefile: Add downloads target to download packages only once
This commit is contained in:
parent
d7819c7bc5
commit
bf237229b6
2
Makefile
2
Makefile
@ -80,7 +80,7 @@ clean: vagrant
|
|||||||
vagrant ssh -c 'rm -rf $(BUILD_DIR)/'
|
vagrant ssh -c 'rm -rf $(BUILD_DIR)/'
|
||||||
|
|
||||||
configure: vagrant
|
configure: vagrant
|
||||||
@vagrant ssh -c 'if [ ! -e $(BUILD_DIR)/Makefile ]; then if ! schroot -i -c dxvk_crosscc >/dev/null 2>&1; then echo !!!! You must run \"vagrant provision\" !!!!; exit 1; fi; mkdir -p $(BUILD_DIR); (cd $(BUILD_DIR) && $(CONFIGURE_CMD)); fi'
|
@vagrant ssh -c 'if [ ! -e $(BUILD_DIR)/Makefile ]; then if ! schroot -i -c dxvk_crosscc >/dev/null 2>&1; then echo !!!! You must run \"vagrant provision\" !!!!; exit 1; fi; mkdir -p $(BUILD_DIR); (cd $(BUILD_DIR) && $(CONFIGURE_CMD)); fi && make -C $(BUILD_DIR) downloads'
|
||||||
|
|
||||||
proton: configure
|
proton: configure
|
||||||
vagrant ssh -c 'make -C $(BUILD_DIR)/ dist'
|
vagrant ssh -c 'make -C $(BUILD_DIR)/ dist'
|
||||||
|
@ -266,6 +266,41 @@ OBJ_DIRS := $(TOOLS_DIR32) $(TOOLS_DIR64) \
|
|||||||
$(OBJ_DIRS):
|
$(OBJ_DIRS):
|
||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
|
|
||||||
|
|
||||||
|
## downloads -- Convenience target to download packages used during the build
|
||||||
|
## process. Places them in subdirs one up from the Proton source dir, so
|
||||||
|
## they won't be wiped during git-clean, vagrant rsync, etc.
|
||||||
|
|
||||||
|
.PHONY: downloads
|
||||||
|
|
||||||
|
BISON_TARBALL_URL := https://ftpmirror.gnu.org/bison/$(BISON_TARBALL)
|
||||||
|
GECKO64_MSI_URL := https://dl.winehq.org/wine/wine-gecko/$(GECKO_VER)/$(GECKO64_MSI)
|
||||||
|
GECKO32_MSI_URL := https://dl.winehq.org/wine/wine-gecko/$(GECKO_VER)/$(GECKO32_MSI)
|
||||||
|
MONO_TARBALL_URL := https://github.com/madewokherd/wine-mono/releases/download/wine-mono-$(WINEMONO_VER)/$(WINEMONO_TARBALL)
|
||||||
|
|
||||||
|
SHARED_BISON_TARBALL := $(SRCDIR)/../bison/$(BISON_TARBALL)
|
||||||
|
SHARED_GECKO64_MSI := $(SRCDIR)/../gecko/$(GECKO64_MSI)
|
||||||
|
SHARED_GECKO32_MSI := $(SRCDIR)/../gecko/$(GECKO32_MSI)
|
||||||
|
SHARED_MONO_TARBALL := $(SRCDIR)/../mono/$(WINEMONO_TARBALL)
|
||||||
|
|
||||||
|
$(SHARED_BISON_TARBALL):
|
||||||
|
mkdir -p $(dir $@)
|
||||||
|
wget -O "$@" "$(BISON_TARBALL_URL)"
|
||||||
|
|
||||||
|
$(SHARED_GECKO64_MSI):
|
||||||
|
mkdir -p $(dir $@)
|
||||||
|
wget -O "$@" "$(GECKO64_MSI_URL)"
|
||||||
|
|
||||||
|
$(SHARED_GECKO32_MSI):
|
||||||
|
mkdir -p $(dir $@)
|
||||||
|
wget -O "$@" "$(GECKO32_MSI_URL)"
|
||||||
|
|
||||||
|
$(SHARED_MONO_TARBALL):
|
||||||
|
mkdir -p $(dir $@)
|
||||||
|
wget -O "$@" "$(MONO_TARBALL_URL)"
|
||||||
|
|
||||||
|
downloads: $(SHARED_BISON_TARBALL) $(SHARED_GECKO64_MSI) $(SHARED_GECKO32_MSI) $(SHARED_MONO_TARBALL)
|
||||||
|
|
||||||
##
|
##
|
||||||
## dist/install -- steps to finalize the install
|
## dist/install -- steps to finalize the install
|
||||||
##
|
##
|
||||||
@ -339,7 +374,7 @@ $(DIST_GECKO64): | $(DIST_GECKO_DIR)
|
|||||||
mkdir -p $(SRCDIR)/contrib/; \
|
mkdir -p $(SRCDIR)/contrib/; \
|
||||||
if [ ! -e "$(SRCDIR)/contrib/$(GECKO64_MSI)" ]; then \
|
if [ ! -e "$(SRCDIR)/contrib/$(GECKO64_MSI)" ]; then \
|
||||||
echo ">>>> Downloading wine-gecko. To avoid this in future, put it here: $(SRCDIR)/../gecko/$(GECKO64_MSI)"; \
|
echo ">>>> Downloading wine-gecko. To avoid this in future, put it here: $(SRCDIR)/../gecko/$(GECKO64_MSI)"; \
|
||||||
wget -O "$(SRCDIR)/contrib/$(GECKO64_MSI)" "https://dl.winehq.org/wine/wine-gecko/$(GECKO_VER)/$(GECKO64_MSI)"; \
|
wget -O "$(SRCDIR)/contrib/$(GECKO64_MSI)" "$(GECKO64_MSI_URL)"; \
|
||||||
fi; \
|
fi; \
|
||||||
cp "$(SRCDIR)/contrib/$(GECKO64_MSI)" "$@"; \
|
cp "$(SRCDIR)/contrib/$(GECKO64_MSI)" "$@"; \
|
||||||
fi
|
fi
|
||||||
@ -351,7 +386,7 @@ $(DIST_GECKO32): | $(DIST_GECKO_DIR)
|
|||||||
mkdir -p $(SRCDIR)/contrib/; \
|
mkdir -p $(SRCDIR)/contrib/; \
|
||||||
if [ ! -e "$(SRCDIR)/contrib/$(GECKO32_MSI)" ]; then \
|
if [ ! -e "$(SRCDIR)/contrib/$(GECKO32_MSI)" ]; then \
|
||||||
echo ">>>> Downloading wine-gecko. To avoid this in future, put it here: $(SRCDIR)/../gecko/$(GECKO32_MSI)"; \
|
echo ">>>> Downloading wine-gecko. To avoid this in future, put it here: $(SRCDIR)/../gecko/$(GECKO32_MSI)"; \
|
||||||
wget -O "$(SRCDIR)/contrib/$(GECKO32_MSI)" "https://dl.winehq.org/wine/wine-gecko/$(GECKO_VER)/$(GECKO32_MSI)"; \
|
wget -O "$(SRCDIR)/contrib/$(GECKO32_MSI)" "$(GECKO32_MSI_URL)"; \
|
||||||
fi; \
|
fi; \
|
||||||
cp "$(SRCDIR)/contrib/$(GECKO32_MSI)" "$@"; \
|
cp "$(SRCDIR)/contrib/$(GECKO32_MSI)" "$@"; \
|
||||||
fi
|
fi
|
||||||
@ -366,7 +401,7 @@ $(DIST_WINEMONO): | $(DIST_WINEMONO_DIR)
|
|||||||
mkdir -p $(SRCDIR)/contrib/; \
|
mkdir -p $(SRCDIR)/contrib/; \
|
||||||
if [ ! -e "$(SRCDIR)/contrib/$(WINEMONO_TARBALL)" ]; then \
|
if [ ! -e "$(SRCDIR)/contrib/$(WINEMONO_TARBALL)" ]; then \
|
||||||
echo ">>>> Downloading wine-mono. To avoid this in future, put it here: $(SRCDIR)/../mono/$(WINEMONO_TARBALL)"; \
|
echo ">>>> Downloading wine-mono. To avoid this in future, put it here: $(SRCDIR)/../mono/$(WINEMONO_TARBALL)"; \
|
||||||
wget -O "$(SRCDIR)/contrib/$(WINEMONO_TARBALL)" "https://github.com/madewokherd/wine-mono/releases/download/wine-mono-$(WINEMONO_VER)/$(WINEMONO_TARBALL)"; \
|
wget -O "$(SRCDIR)/contrib/$(WINEMONO_TARBALL)" "$(MONO_TARBALL_URL)"; \
|
||||||
fi; \
|
fi; \
|
||||||
tar -xf "$(SRCDIR)/contrib/$(WINEMONO_TARBALL)" -C "$(dir $@)"; \
|
tar -xf "$(SRCDIR)/contrib/$(WINEMONO_TARBALL)" -C "$(dir $@)"; \
|
||||||
fi
|
fi
|
||||||
@ -997,7 +1032,7 @@ $(BISON):
|
|||||||
mkdir -p $(SRCDIR)/contrib/; \
|
mkdir -p $(SRCDIR)/contrib/; \
|
||||||
if [ ! -e "$(SRCDIR)/contrib/$(BISON_TARBALL)" ]; then \
|
if [ ! -e "$(SRCDIR)/contrib/$(BISON_TARBALL)" ]; then \
|
||||||
echo ">>>> Downloading bison. To avoid this in future, put it here: $(SRCDIR)/../bison/$(BISON_TARBALL)"; \
|
echo ">>>> Downloading bison. To avoid this in future, put it here: $(SRCDIR)/../bison/$(BISON_TARBALL)"; \
|
||||||
wget -O "$(SRCDIR)/contrib/$(BISON_TARBALL)" "https://ftpmirror.gnu.org/bison/$(BISON_TARBALL)"; \
|
wget -O "$(SRCDIR)/contrib/$(BISON_TARBALL)" "$(BISON_TARBALL_URL)"; \
|
||||||
fi; \
|
fi; \
|
||||||
tar -xf "$(SRCDIR)/contrib/$(BISON_TARBALL)" -C "$(dir $@)"; \
|
tar -xf "$(SRCDIR)/contrib/$(BISON_TARBALL)" -C "$(dir $@)"; \
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user