summaryrefslogtreecommitdiff
blob: 05399cebc842c1fd2cbfb50785cbb1e61ee12f7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Add support for installing with `make install DESTDIR=/blah`

--- src/Makefile.in
+++ src/Makefile.in
@@ -37,7 +37,8 @@
 
 PL=@PL@@RT@
 PLV=@PL@@RT@-@PLVERSION@
+DESTDIR=
+prefix=$(DESTDIR)@prefix@
-prefix=@prefix@
 exec_prefix=@exec_prefix@
 srcdir=@srcdir@
 @VPATH@ @srcdir@
@@ -45,7 +46,7 @@
 PLBASE=$(prefix)/lib/@PL@-$(PLVERSION)
 # NOTE: Also defined in config.h!
 BOOTFILE=@BOOTFILE@
+mandir=$(DESTDIR)@mandir@
-mandir=@mandir@
 mansec=1
 lmansec=3
 smandir=$(mandir)/man$(mansec)