chiark / gitweb /
Build system: Makefile: support DESTDIR.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 27 Dec 2014 21:35:02 +0000 (21:35 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 28 Dec 2014 16:09:34 +0000 (16:09 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Makefile.in
debian/changelog

index b7e933b..16b099a 100644 (file)
@@ -32,10 +32,10 @@ INSTALL:=@INSTALL@
 INSTALL_PROGRAM:=@INSTALL_PROGRAM@
 INSTALL_SCRIPT:=@INSTALL_SCRIPT@
 
-prefix:=@prefix@
+prefix:=$(DESTDIR)@prefix@
 exec_prefix:=@exec_prefix@
 sbindir:=@sbindir@
-sysconfdir:=@sysconfdir@
+sysconfdir:=$(DESTDIR)@sysconfdir@
 datarootdir:=@datarootdir@
 transform:=@program_transform_name@
 mandir:=@mandir@
@@ -75,7 +75,7 @@ endif
 STALE_PYTHON_FILES=    $(foreach e, py pyc, \
                        $(foreach p, /usr /usr/local, \
                        $(foreach l, ipaddr, \
-                       $p/share/secnet/$l.$e \
+                       $(DESTDIR)$p/share/secnet/$l.$e \
                        )))
 
 %.c:   %.y
index dcb55af..768c9f7 100644 (file)
@@ -4,8 +4,9 @@ secnet (0.4.0~beta2~) unstable; urgency=low
   * polypath: Skip "tentative" IPv6 local addresses.
   * polypath: Improve logging and debug output.
   * Portability fix: Build where size_t is not compatible with int.
+  * Makefile: support DESTDIR.
 
- -- Ian Jackson <ijackson@chiark.greenend.org.uk>  Sat, 27 Dec 2014 21:28:25 +0000
+ --
 
 secnet (0.4.0~beta1) unstable; urgency=low