From 13a884d60c6bd9fabeadeb7bbef1efe01160239f Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Fri, 8 Dec 2017 17:11:21 -0500 Subject: [PATCH] move command so that it only gets evaluated when the rule is fired --- packages/linux_make/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/linux_make/Makefile b/packages/linux_make/Makefile index 5d889d470..e19036680 100644 --- a/packages/linux_make/Makefile +++ b/packages/linux_make/Makefile @@ -22,8 +22,6 @@ endif # directory as $(prefix) otherwise Pd won't be able to find extra, doc, etc. ifeq ($(PACKAGE_TYPE),deb) prefix = /usr - # generates the dependencies for all externals and pd itself - PACKAGE_DEPENDS := $(shell find $(DESTDIR) \( -name "*.pd_linux" -or -name pd-gui -or -wholename \*bin/pd \) -print0 | xargs -0 dpkg-shlibdeps -O | sed 's|shlibs:Depends=|, |' ) else prefix = /usr/local endif @@ -160,6 +158,9 @@ deb: debstage cp $(packages_src)/linux_make/debian/control $(DESTDIR)/DEBIAN cp $(packages_src)/linux_make/debian/pd-l2ork.postrm $(DESTDIR)/DEBIAN cp $(packages_src)/linux_make/debian/pd-l2ork.postinst $(DESTDIR)/DEBIAN +# generate the dependencies for all externals and pd itself + $(eval PACKAGE_DEPENDS := $(shell find $(DESTDIR) \( -name "*.pd_linux" -or -name pd-gui -or -wholename \*bin/pd \) -print0 | xargs -0 dpkg-shlibdeps -O | sed 's|shlibs:Depends=|, |' )) + # set build architecture and version for the package sed -i 's|^Version:.*|Version: $(DEB_PD_VERSION)|' \ $(DESTDIR)/DEBIAN/control @@ -278,7 +279,7 @@ test_locations: @echo "MANUALSDIR $(manualsdir)" @echo "EXAMPLESDIR $(examplesdir)" @echo -------------------------------------------------- - @echo "PACKAGE_DEPENDS $(PACKAGE_DEPENDS)" +# @echo "PACKAGE_DEPENDS $(PACKAGE_DEPENDS)" @echo -------------------------------------------------- autoconf --version @echo -------------------------------------------------- -- GitLab