Makefile: have the default invocation safer.
Don't modify $(PREFIX) from 'make', only from 'make install'.
This commit is contained in:
parent
75d62b9657
commit
984b4acd78
4
Makefile
4
Makefile
|
@ -4,6 +4,10 @@ INSTALL?=install -c
|
||||||
PREFIX?=/usr/local
|
PREFIX?=/usr/local
|
||||||
SHARE_DIR=$(DESTDIR)$(PREFIX)/share/$(NAME)
|
SHARE_DIR=$(DESTDIR)$(PREFIX)/share/$(NAME)
|
||||||
|
|
||||||
|
# Have the default target do nothing.
|
||||||
|
all:
|
||||||
|
@ :
|
||||||
|
|
||||||
install:
|
install:
|
||||||
$(INSTALL) -d $(SHARE_DIR)
|
$(INSTALL) -d $(SHARE_DIR)
|
||||||
cp -r zsh-syntax-highlighting.zsh highlighters $(SHARE_DIR)
|
cp -r zsh-syntax-highlighting.zsh highlighters $(SHARE_DIR)
|
||||||
|
|
Loading…
Reference in New Issue