From 56740691f98f937f898049017c49038b05cf4a4e Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 14 Dec 2010 00:48:23 +0000 Subject: fix installation of objects with a $ in the name and ease building of GNU/Linux distro tarball svn path=/trunk/; revision=14632 --- packages/linux_make/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'packages/linux_make/Makefile') diff --git a/packages/linux_make/Makefile b/packages/linux_make/Makefile index 5d5e52b6..1086039d 100755 --- a/packages/linux_make/Makefile +++ b/packages/linux_make/Makefile @@ -11,6 +11,13 @@ BUILDLAYOUT_DIR = $(cvs_root_dir)/packages include $(BUILDLAYOUT_DIR)/Makefile.buildlayout +# if machine has dpkg-deb, build a Debian package +ifeq ($(shell test -x /usr/bin/dpkg-shlibdeps && echo YES),YES) + PACKAGE_TYPE = deb +else + PACKAGE_TYPE = tarbz2 +endif + # for command-line UNIX versions, you need to install Pd into the same # directory as $(prefix) otherwise Pd won't be able to find extra, doc, etc. ifeq ($(PACKAGE_TYPE),deb) @@ -156,8 +163,6 @@ installer_readme: installer_makefile: -# it is very hard to escape the $ in shell scripts so delete files - -rm -f -- $(helpdir)/iem*/*\$$*.pd $(objectsdir)/iem*/*\$$*.pd # don't put the Makefile into the package yet, otherwise it'll get installed ./generate_install_makefile.bash $(DESTDIR)$(prefix) > tarbz2Makefile mv -i tarbz2Makefile $(DESTDIR)$(prefix)/Makefile -- cgit v1.2.1