aboutsummaryrefslogtreecommitdiffstats
path: root/main/txt2man/makefile.patch
blob: 47e99e4421b7bbde21ea9024d1aa734545c70d95 (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.6.0
 BIN = src2man bookman txt2man
 MAN1 = src2man.1 txt2man.1 bookman.1
@@ -7,9 +9,9 @@
 all: $(MAN1)
 
 install: $(MAN1)
-	mkdir -p $(prefix)/bin $(prefix)/share/man/man1
-	cp $(BIN) $(prefix)/bin/
-	cp $(MAN1) $(prefix)/share/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