summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-10-30 15:46:44 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-10-30 15:46:44 +0100
commit5ce633839096d25a684af6978ba9da7d6d34fdaf (patch)
tree2379b5712847a7b6d5f50c8850a21757512db336 /mk
parentd9692a11d574a39deaf6f171dcfae7aa0d4a63d4 (diff)
fix update-patches when WRKDIST is overwritten in the Makefile
Diffstat (limited to 'mk')
-rw-r--r--mk/buildhlp.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/buildhlp.mk b/mk/buildhlp.mk
index 5fdc7011a..79014ac4b 100644
--- a/mk/buildhlp.mk
+++ b/mk/buildhlp.mk
@@ -94,7 +94,8 @@ else
@$(MAKE) -s V=0 prepare WRKDIR=${WRKDIR}.orig PREVENT_PATCH=: NO_CHECKSUM=1
endif
@-test ! -r ${WRKDIR}/.autoreconf_done || \
- (cd ${WRKDIR}.orig/${PKG_NAME}-${PKG_VERSION}; \
+ (wrkdist=$(WRKDIST) dir=$${wrkdist#$(WRKDIR)}; \
+ cd ${WRKDIR}.orig$${dir}; \
env ${AUTOTOOL_ENV} autoreconf -if) $(MAKE_TRACE)
@rm -rf ${WRKDIR}.orig/${PKG_NAME}-${PKG_VERSION}/autom4te.cache
@# restore config.sub/config.guess