Added quick and dirty install Makefile for systems where the package manager doesn't have it.

This commit is contained in:
Keith T. Garner 2015-08-23 11:37:40 -05:00
parent 3dc5741900
commit 649e55aee4

15
Makefile Normal file
View 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)