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.
parent e77433fa
...@@ -153,6 +153,13 @@ clean-local: ...@@ -153,6 +153,13 @@ clean-local:
cd $(top_srcdir) && \ cd $(top_srcdir) && \
CARGO_TARGET_DIR=$(CARGO_TARGET_DIR) cargo clean 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: dist-hook:
(cd $(distdir) && \ (cd $(distdir) && \
cargo vendor -q && \ cargo vendor -q && \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment