From 649e55aee4d0120e948f57d413c52767710633c5 Mon Sep 17 00:00:00 2001 From: "Keith T. Garner" Date: Sun, 23 Aug 2015 11:37:40 -0500 Subject: [PATCH] Added quick and dirty install Makefile for systems where the package manager doesn't have it. --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9385a7b --- /dev/null +++ b/Makefile @@ -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)