summaryrefslogtreecommitdiffstats
path: root/testing/tbl/tbl-install.patch
blob: 72465ea2d8d6b0e5e6180e7d006acaa7c1ab8b71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- ./Makefile.orig
+++ ./Makefile
@@ -64,11 +64,11 @@
 	install -m 0444 tbl-$(VERSION).md5 $(PREFIX)/snapshots/tbl.md5
 
 install:
-	mkdir -p $(BINDIR)
-	mkdir -p $(MANDIR)/man5
-	$(INSTALL_PROGRAM) tbl $(BINDIR)
-	$(INSTALL_MAN) tbl.5 $(MANDIR)/man5
-	$(INSTALL_MAN) tbl.1 $(MANDIR)/man1
+	mkdir -p $(DESTDIR)$(BINDIR)
+	mkdir -p $(DESTDIR)$(MANDIR)/man5
+	$(INSTALL_PROGRAM) tbl $(DESTDIR)$(BINDIR)
+	$(INSTALL_MAN) tbl.5 $(DESTDIR)$(MANDIR)/man5
+	$(INSTALL_MAN) tbl.1 $(DESTDIR)$(MANDIR)/man1
 
 main.o: main.c tbl.h