From 984b4acd7818bf513850a31415f9a5a5b040191c Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Mon, 19 Oct 2015 07:08:21 +0000 Subject: [PATCH] Makefile: have the default invocation safer. Don't modify $(PREFIX) from 'make', only from 'make install'. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 68fbf0d..5088d6a 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,10 @@ INSTALL?=install -c PREFIX?=/usr/local SHARE_DIR=$(DESTDIR)$(PREFIX)/share/$(NAME) +# Have the default target do nothing. +all: + @ : + install: $(INSTALL) -d $(SHARE_DIR) cp -r zsh-syntax-highlighting.zsh highlighters $(SHARE_DIR)