From 4f489b28fec699dd80615bd702d94f804a02efdd Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 7 May 2015 22:19:13 +0100 Subject: [PATCH] Try to discourage people from using 'make install' because it causes endless support troubles. --- Makefile.am | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Makefile.am b/Makefile.am index 580404ac7..b5f7eca0f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -355,6 +355,21 @@ all-local: find builder customize mllib resize sparsify sysprep v2v -name '*.ml' | \ LC_ALL=C sort > po/POTFILES-ml +# Try to stop people using 'make install' without 'DESTDIR'. +install: + @if test "x$(DESTDIR)" != "x" || test "x$(REALLY_INSTALL)" = "xyes"; \ + then \ + $(MAKE) install-recursive; \ + else \ + echo "***"; \ + echo "*** Using 'make install' is usually a very bad idea."; \ + echo "*** Use the './run' script instead - see the README."; \ + echo "***"; \ + echo "*** You can override this by setting REALLY_INSTALL=yes, but don't do that."; \ + echo "***"; \ + exit 1; \ + fi + # Manual pages in top level directory. man_MANS = \