Author: Debian
Description: prepend $(DESTDIR) to installation targets
--- pdp.orig/Makefile
+++ pdp/Makefile
@@ -65,19 +65,19 @@
 
 
 install: all
-	install -d $(prefix)/lib/pd/extra
-	install -m 755 $(PDP_LIBRARY_NAME) $(prefix)/lib/pd/extra
-	install -m 755 -d $(prefix)/include/pdp
-	install -m 644 include/*.h $(prefix)/include/pdp
-	install -m 644 abstractions/*.pd $(prefix)/lib/pd/extra
-	install -m 644 doc/objects/*.pd $(prefix)/lib/pd/doc/5.reference
-	install -m 755 -d $(prefix)/lib/pd/doc/pdp
-	install -m 755 -d $(prefix)/lib/pd/doc/pdp/introduction
-	install -m 755 -d $(prefix)/lib/pd/doc/pdp/examples
-	install -m 644 doc/reference.txt $(prefix)/lib/pd/doc/pdp
-	install -m 644 doc/introduction/*.pd $(prefix)/lib/pd/doc/pdp/introduction
-	install -m 644 doc/examples/*.pd $(prefix)/lib/pd/doc/pdp/examples
-	install -m 755 bin/pdp-config $(prefix)/bin
+	install -d $(DESTDIR)$(prefix)/lib/pd/extra
+	install -m 755 $(PDP_LIBRARY_NAME) $(DESTDIR)$(prefix)/lib/pd/extra
+	install -m 755 -d $(DESTDIR)$(prefix)/include/pdp
+	install -m 644 include/*.h $(DESTDIR)$(prefix)/include/pdp
+	install -m 644 abstractions/*.pd $(DESTDIR)$(prefix)/lib/pd/extra
+	install -m 644 doc/objects/*.pd $(DESTDIR)$(prefix)/lib/pd/doc/5.reference
+	install -m 755 -d $(DESTDIR)$(prefix)/lib/pd/doc/pdp
+	install -m 755 -d $(DESTDIR)$(prefix)/lib/pd/doc/pdp/introduction
+	install -m 755 -d $(DESTDIR)$(prefix)/lib/pd/doc/pdp/examples
+	install -m 644 doc/reference.txt $(DESTDIR)$(prefix)/lib/pd/doc/pdp
+	install -m 644 doc/introduction/*.pd $(DESTDIR)$(prefix)/lib/pd/doc/pdp/introduction
+	install -m 644 doc/examples/*.pd $(DESTDIR)$(prefix)/lib/pd/doc/pdp/examples
+	install -m 755 bin/pdp-config $(DESTDIR)$(prefix)/bin
 
 snapshot:
 	bin/snapshot -d darcs
