mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-02-13 10:05:31 +08:00
Added quick and dirty install Makefile for systems where the package manager doesn't have it.
This commit is contained in:
parent
3dc5741900
commit
649e55aee4
15
Makefile
Normal file
15
Makefile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
NAME=zsh-syntax-highlighting
|
||||||
|
|
||||||
|
DIRS=highlighters tests
|
||||||
|
INSTALL_DIRS=`find $(DIRS) -type d 2>/dev/null`
|
||||||
|
DOC_FILES=*.md
|
||||||
|
ZSH_FILES=*.zsh
|
||||||
|
|
||||||
|
PREFIX?=/usr/local
|
||||||
|
|
||||||
|
SHARE_DIR=$(DESTDIR)$(PREFIX)/share/$(NAME)
|
||||||
|
|
||||||
|
install:
|
||||||
|
for dir in $(INSTALL_DIRS); do mkdir -p $(SHARE_DIR)/$$dir; done
|
||||||
|
find $(DIRS) -type f -print0 | xargs -0 -I % cp % $(SHARE_DIR)/%
|
||||||
|
cp -r $(DOC_FILES) $(ZSH_FILES) $(SHARE_DIR)
|
Loading…
Reference in New Issue
Block a user