Makefile: have the default invocation safer.

Don't modify $(PREFIX) from 'make', only from 'make install'.
This commit is contained in:
Daniel Shahaf 2015-10-19 07:08:21 +00:00
parent 75d62b9657
commit 984b4acd78

View file

@ -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)