summarylogtreecommitdiffstats
path: root/destdir.patch
blob: d78a5628f8ed6b1c3f0d3e7c3a633483b480ccf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- a/Makefile.in	2024-12-08 21:29:35.849412907 +0100
+++ b/Makefile.in	2024-12-08 21:30:16.666791142 +0100
@@ -19,14 +19,14 @@
 all: $(TARGETS)

 install: $(TARGETS)
-	$(INSTALL) -d $(bindir)
-	$(INSTALL) -m 755 try $(bindir)
+	$(INSTALL) -d $(DESTDIR)$(bindir)
+	$(INSTALL) -m 755 try $(DESTDIR)$(bindir)
 ifeq (@enable_utils@, yes)
-	$(INSTALL) -m 755 utils/try-summary $(bindir)
-	$(INSTALL) -m 755 utils/try-commit $(bindir)
+	$(INSTALL) -m 755 utils/try-summary $(DESTDIR)$(bindir)
+	$(INSTALL) -m 755 utils/try-commit $(DESTDIR)$(bindir)
 endif
-	$(INSTALL) -d $(mandir)/man1
-	$(INSTALL) -m 644 man/try.1.gz $(mandir)/man1
+	$(INSTALL) -d $(DESTDIR)$(mandir)/man1
+	$(INSTALL) -m 644 man/try.1.gz $(DESTDIR)$(mandir)/man1

 dist: $(DISTTGZ)