summaryrefslogtreecommitdiff
path: root/textproc/aspic/patches/patch-Makefile.in
blob: 777ee5130f9c98e7af5e24affb032c0fa1ba36a9 (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
$NetBSD: patch-Makefile.in,v 1.1 2018/06/15 13:15:26 prlw1 Exp $

Add destdir support.

--- Makefile.in.orig	2011-03-04 09:07:16.000000000 +0000
+++ Makefile.in
@@ -14,7 +14,7 @@ INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
 
 BINDIR=@prefix@/bin
-MANDIR=@prefix@/man
+MANDIR=@mandir@
 
 # BINDIR is the directory in which the command is installed.
 # MANDIR is the directory in which the man pages are installed.
@@ -46,9 +46,9 @@ distclean:;     rm Makefile config.cache
 test:; cd testing; ./RunTests
 
 install:        build
-		$(mkinstalldirs) $(BINDIR)
-		$(mkinstalldirs) $(MANDIR)
-		$(mkinstalldirs) $(MANDIR)/man1
-		$(INSTALL) src/aspic $(BINDIR)/aspic
-		$(INSTALL_DATA) doc/aspic.1 $(MANDIR)/man1
+		$(mkinstalldirs) $(DESTDIR)$(BINDIR)
+		$(mkinstalldirs) $(DESTDIR)$(MANDIR)
+		$(mkinstalldirs) $(DESTDIR)$(MANDIR)/man1
+		$(INSTALL) src/aspic $(DESTDIR)$(BINDIR)/aspic
+		$(INSTALL_DATA) doc/aspic.1 $(DESTDIR)$(MANDIR)/man1
 # End