0001-Makefile-allow-to-override-the-PREFIX-variable.patch 766 B

12345678910111213141516171819202122232425262728293031
  1. From 7314d232f8e85879d8f4c311ced44ee5b21fb239 Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Wed, 10 Feb 2016 23:26:27 +0100
  4. Subject: [PATCH] Makefile: allow to override the PREFIX variable
  5. Some people may not want to install in /usr/local, so this commit
  6. makes it possible to override the PREFIX variable from the make
  7. command line.
  8. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  9. ---
  10. Makefile | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. diff --git a/Makefile b/Makefile
  13. index 69f5aca..f9a6781 100644
  14. --- a/Makefile
  15. +++ b/Makefile
  16. @@ -20,7 +20,7 @@
  17. # $Id$
  18. DESTDIR=
  19. -PREFIX=/usr/local
  20. +PREFIX?=/usr/local
  21. ETCDIR=/etc/vpnc
  22. BINDIR=$(PREFIX)/bin
  23. SBINDIR=$(PREFIX)/sbin
  24. --
  25. 2.6.4