aboutsummaryrefslogtreecommitdiffstats
path: root/testing/txt2man/makefile.patch
blob: 617d4b0d2dfddfe745ece9ac476fc799bc111720 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- ./Makefile.orig
+++ ./Makefile
@@ -1,5 +1,7 @@
 # Makefile
 prefix ?= /usr/local
+bindir ?= $(prefix)/bin
+mandir ?= $(prefix)/share/man
 version = txt2man-1.5.6
 BIN = src2man bookman txt2man
 MAN1 = src2man.1 txt2man.1 bookman.1
@@ -7,9 +9,9 @@
 all: $(MAN1)
 
 install: $(MAN1)
-	mkdir -p $(prefix)/bin $(prefix)/man/man1
-	cp $(BIN) $(prefix)/bin/
-	cp $(MAN1) $(prefix)/man/man1
+	mkdir -p $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1
+	cp $(BIN) $(DESTDIR)$(bindir)
+	cp $(MAN1) $(DESTDIR)$(mandir)/man1
 
 clean:
 	rm -f *.1 *.txt *.ps *.pdf *.html