mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-27 07:05:46 +03:00
makefile: Always update version file in dist target
This commit is contained in:
parent
9cb38b1754
commit
cb93dcdd7d
@ -271,7 +271,7 @@ DIST_GECKO32 := $(DIST_GECKO_DIR)/$(GECKO32_MSI)
|
||||
DIST_GECKO64 := $(DIST_GECKO_DIR)/$(GECKO64_MSI)
|
||||
DIST_FONTS := $(DST_DIR)/share/fonts
|
||||
|
||||
DIST_TARGETS := $(DIST_COPY_TARGETS) $(DIST_VERSION) $(DIST_OVR32) $(DIST_OVR64) \
|
||||
DIST_TARGETS := $(DIST_COPY_TARGETS) $(DIST_OVR32) $(DIST_OVR64) \
|
||||
$(DIST_GECKO32) $(DIST_GECKO64) $(DIST_COMPAT_MANIFEST) $(DIST_LICENSE) \
|
||||
$(DIST_FONTS)
|
||||
|
||||
@ -291,10 +291,6 @@ $(DIST_OVR64): $(SRCDIR)/openvr/bin/win64/openvr_api.dll | $(DST_DIR)
|
||||
$(DIST_COPY_TARGETS): | $(DST_DIR)
|
||||
cp -a $(SRCDIR)/$(notdir $@) $@
|
||||
|
||||
$(DIST_VERSION): | $(DST_DIR)
|
||||
echo `date '+%s'` `GIT_DIR=$(abspath $(SRCDIR)/.git) git describe --tags` > $@
|
||||
cp $(DIST_VERSION) $(DST_BASE)/
|
||||
|
||||
$(DIST_COMPAT_MANIFEST): $(COMPAT_MANIFEST_TEMPLATE) $(MAKEFILE_DEP) | $(DST_DIR)
|
||||
sed -r 's|##BUILD_NAME##|$(BUILD_NAME)|' $< > $@
|
||||
|
||||
@ -337,6 +333,8 @@ GOAL_TARGETS += dist
|
||||
# Only drag in WINE_OUT if they need to be built at all, otherwise this doesn't imply a rebuild of wine. If wine is in
|
||||
# the explicit targets, specify that this should occur after.
|
||||
dist: $(DIST_TARGETS) | $(WINE_OUT) $(filter $(MAKECMDGOALS),wine64 wine32 wine) $(DST_DIR)
|
||||
echo `date '+%s'` `GIT_DIR=$(abspath $(SRCDIR)/.git) git describe --tags` > $(DIST_VERSION)
|
||||
cp $(DIST_VERSION) $(DST_BASE)/
|
||||
rm -rf $(abspath $(DIST_PREFIX)) && \
|
||||
WINEPREFIX=$(abspath $(DIST_PREFIX)) $(WINE_OUT_BIN) wineboot && \
|
||||
WINEPREFIX=$(abspath $(DIST_PREFIX)) $(WINE_OUT_SERVER) -w && \
|
||||
|
Loading…
Reference in New Issue
Block a user