[librsvg: 1/2] distcheck-hook: remind myself to use DESTDIR, or distcheck won't work



commit 622cfed3532a4c57389d6b945a6700544548e5e3
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Aug 30 13:55:20 2018 -0500

    distcheck-hook: remind myself to use DESTDIR, or distcheck won't work
    
    Because without it, the pixbuf loader wants to refresh the system
    directory and it doesn't have permission to do that if I run "make
    distcheck" as a user.

 Makefile.am | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/Makefile.am b/Makefile.am
index 131076c9..3792d40b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -153,6 +153,13 @@ clean-local:
        cd $(top_srcdir) && \
        CARGO_TARGET_DIR=$(CARGO_TARGET_DIR) cargo clean
 
+distcheck-hook:
+       if test -z "${DESTDIR}";                                                \
+       then                                                                    \
+               echo "Please specify DESTDIR=/tmp/foo so distcheck will work";  \
+               exit 1;                                                         \
+       fi
+
 dist-hook:
        (cd $(distdir) && \
        cargo vendor -q && \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]