aboutsummaryrefslogtreecommitdiff
path: root/packages/linux_make/Makefile
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-06-30 18:16:16 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-06-30 18:16:16 +0000
commitc4d080bf87da3944a15f4ca9942273b2cb3306f8 (patch)
treeab6ca059a37bcfd9a5d825278f4ae75152216021 /packages/linux_make/Makefile
parentdacf7b607b9d0fda8b9a38b58dc97ce77b9ce3e9 (diff)
hacked together a .deb for Pd-extended at gohan/zaragoza
svn path=/trunk/; revision=7862
Diffstat (limited to 'packages/linux_make/Makefile')
-rwxr-xr-xpackages/linux_make/Makefile24
1 files changed, 23 insertions, 1 deletions
diff --git a/packages/linux_make/Makefile b/packages/linux_make/Makefile
index 3557322b..c67556d3 100755
--- a/packages/linux_make/Makefile
+++ b/packages/linux_make/Makefile
@@ -1,4 +1,4 @@
-#
+g#
# for making a tar.bz2 that installs using a Makefile
#
@@ -62,6 +62,22 @@ install:
package: tarbz2
PACKAGE_NAME = Pd-$(PD_VERSION)
+
+deb:
+# GNOME menu support
+ test -d $(DESTDIR)/usr/share/icons/hicolor/128x128/apps || \
+ mkdir -p $(DESTDIR)/usr/share/icons/hicolor/128x128/apps
+ install -p $(packages_src)/linux_make/pd.png \
+ $(DESTDIR)/usr/share/icons/hicolor/128x128/apps/
+ test -d $(DESTDIR)/usr/share/applications/ || \
+ mkdir -p $(DESTDIR)/usr/share/applications/
+ install -p $(packages_src)/linux_make/pd-extended.desktop \
+ $(DESTDIR)/usr/share/applications/
+# debian packageing
+ test -d $(DESTDIR)/DEBIAN || mkdir -p $(DESTDIR)/DEBIAN
+ cp $(packages_src)/linux_make/debian/control $(DESTDIR)/DEBIAN
+ dpkg-deb --build $(DESTDIR) $(packages_src)/linux_make/$(PACKAGE_NAME).deb
+
tarbz2: installer_makefile installer_readme
install -p .pdsettings $(DESTDIR)$(prefix)
mv $(DESTDIR)$(prefix) $(DESTDIR)$(PACKAGE_NAME)
@@ -112,6 +128,12 @@ package_clean: installer_clean
#
#==============================================================================#
+#==============================================================================#
+#
+## TEST TARGETS
+#
+#==============================================================================#
+
test_package:
cd /tmp && tar xjf $(DESTDIR)/$(PACKAGE_NAME).tar.bz2
$(MAKE) -C /tmp/$(PACKAGE_NAME) prefix=/tmp/usr/local install