summaryrefslogtreecommitdiff
blob: ee9b29ef755871d833546551ac8a916d46b2be27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Build system does not honour $(DESTDIR)

--- a/Makefile
+++ b/Makefile
@@ -54,8 +54,8 @@
 uninstall: uninstall-headers uninstall-docs
 
 install-headers:
-	mkdir -p $(PREFIX)/include/png++
-	cp $(headers) $(PREFIX)/include/png++
+	mkdir -p $(DESTDIR)$(PREFIX)/include/png++
+	cp $(headers) $(DESTDIR)$(PREFIX)/include/png++
 
 uninstall-headers:
 	rm -rf $(PREFIX)/include/png++