aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ijq/makefile-destdir.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/ijq/makefile-destdir.patch')
-rw-r--r--testing/ijq/makefile-destdir.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/ijq/makefile-destdir.patch b/testing/ijq/makefile-destdir.patch
new file mode 100644
index 0000000000..1136a071bd
--- /dev/null
+++ b/testing/ijq/makefile-destdir.patch
@@ -0,0 +1,30 @@
+--- a/Makefile
++++ b/Makefile
+@@ -1,6 +1,6 @@
+-prefix = /usr/local
+-bindir = $(prefix)/bin
+-mandir = $(prefix)/share/man
++PREFIX = /usr/local
++BINDIR = $(PREFIX)/bin
++MANDIR = $(PREFIX)/share/man
+
+ SRCS = main.go
+
+@@ -20,13 +20,13 @@
+
+ .PHONY: install
+ install: ijq ijq.1
+- install -d $(bindir) $(mandir)/man1
+- install -m 0755 ijq $(bindir)
+- install -m 0644 ijq.1 $(mandir)/man1
++ install -d $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
++ install -m 0755 ijq -t $(DESTDIR)$(BINDIR)/
++ install -m 0644 ijq.1 -t $(DESTDIR)$(MANDIR)/man1/
+
+ .PHONY: uninstall
+ uninstall:
+- rm $(bindir)/ijq $(mandir)/man1/ijq.1
++ rm $(BINDIR)/ijq $(MANDIR)/man1/ijq.1
+
+ .PHONY: clean
+ clean: