summaryrefslogtreecommitdiff
path: root/devel/cvs-fast-export/patches/patch-Makefile
blob: f122559fb219a608b6024aa3e55a8824b151f991 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$NetBSD: patch-Makefile,v 1.1 2013/04/20 09:40:49 apb Exp $

* Add "all" target.
* Use ${PREFIX} variable.
* Install man pages in ${PREFIX}/${PKGMANDIR}, not ${PREFIX}/share/man.

--- Makefile.orig	2013-01-16 16:23:51.000000000 +0000
+++ Makefile
@@ -2,9 +2,12 @@
 #
 # Build requirements: A C compiler, yacc, lex, and asciidoc.
 
+all: cvs-fast-export cvs-fast-export.1
+
 INSTALL = install
-prefix?=/usr/local
+prefix=$(PREFIX)
 target=$(DESTDIR)$(prefix)
+mandir=$(PKGMANDIR)
 
 VERSION=0.3
 
@@ -47,9 +50,9 @@ clean:
 
 install: cvs-fast-export.1 all
 	$(INSTALL) -d "$(target)/bin"
-	$(INSTALL) -d "$(target)/share/man/man1"
+	$(INSTALL) -d "$(target)/$(mandir)/man1"
 	$(INSTALL) cvs-fast-export "$(target)/bin"
-	$(INSTALL) -m 644 cvs-fast-export.1 "$(target)/share/man/man1"
+	$(INSTALL) -m 644 cvs-fast-export.1 "$(target)/$(mandir)/man1"
 
 cppcheck:
 	cppcheck --template gcc --enable=all -UUNUSED --suppress=unusedStructMember *.[ch]