Commit 13a884d6 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

move command so that it only gets evaluated when the rule is fired

parent f6f996f4
Pipeline #1077 passed with stage
in 336 minutes and 33 seconds
...@@ -22,8 +22,6 @@ endif ...@@ -22,8 +22,6 @@ endif
# directory as $(prefix) otherwise Pd won't be able to find extra, doc, etc. # directory as $(prefix) otherwise Pd won't be able to find extra, doc, etc.
ifeq ($(PACKAGE_TYPE),deb) ifeq ($(PACKAGE_TYPE),deb)
prefix = /usr 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 else
prefix = /usr/local prefix = /usr/local
endif endif
...@@ -160,6 +158,9 @@ deb: debstage ...@@ -160,6 +158,9 @@ deb: debstage
cp $(packages_src)/linux_make/debian/control $(DESTDIR)/DEBIAN 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.postrm $(DESTDIR)/DEBIAN
cp $(packages_src)/linux_make/debian/pd-l2ork.postinst $(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 # set build architecture and version for the package
sed -i 's|^Version:.*|Version: $(DEB_PD_VERSION)|' \ sed -i 's|^Version:.*|Version: $(DEB_PD_VERSION)|' \
$(DESTDIR)/DEBIAN/control $(DESTDIR)/DEBIAN/control
...@@ -278,7 +279,7 @@ test_locations: ...@@ -278,7 +279,7 @@ test_locations:
@echo "MANUALSDIR $(manualsdir)" @echo "MANUALSDIR $(manualsdir)"
@echo "EXAMPLESDIR $(examplesdir)" @echo "EXAMPLESDIR $(examplesdir)"
@echo -------------------------------------------------- @echo --------------------------------------------------
@echo "PACKAGE_DEPENDS $(PACKAGE_DEPENDS)" # @echo "PACKAGE_DEPENDS $(PACKAGE_DEPENDS)"
@echo -------------------------------------------------- @echo --------------------------------------------------
autoconf --version autoconf --version
@echo -------------------------------------------------- @echo --------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment