blob: 295070b473a8101ad49a080cebf1280ec4a84ed0 (
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
|
$NetBSD: patch-aa,v 1.2 2008/02/11 23:28:46 heinz Exp $
- make variables overridable and thus the build process more flexible
Submitted upstream.
--- Makefile.orig Thu Jul 24 16:46:30 2003
+++ Makefile
@@ -1,14 +1,18 @@
DESTDIR=
-PREFIX=/usr/local
-MANDIR=$(PREFIX)/share/man
+PREFIX?=/usr/local
+MANDIR?=$(PREFIX)/share/man
+INSTALL_MAN_DIR?=mkdir -p
+INSTALL_SCRIPT_DIR?=mkdir -p
+INSTALL_MAN?=cp
+INSTALL_SCRIPT?=install -m 755
all: manpage
install: all
- mkdir -p $(DESTDIR)$(MANDIR)/man1/
- mkdir -p $(DESTDIR)$(PREFIX)/bin/
- cp convmv.1.gz $(DESTDIR)$(MANDIR)/man1/
- install -m 755 convmv $(DESTDIR)$(PREFIX)/bin/
+ ${INSTALL_MAN_DIR} $(DESTDIR)$(MANDIR)/man1
+ ${INSTALL_SCRIPT_DIR} $(DESTDIR)$(PREFIX)/bin
+ ${INSTALL_MAN} convmv.1.gz $(DESTDIR)$(MANDIR)/man1
+ ${INSTALL_SCRIPT} convmv $(DESTDIR)$(PREFIX)/bin
manpage:
pod2man --section 1 --center=" " convmv | gzip > convmv.1.gz
|