From 32ce55bda46ee3f79633a04291d346e84adee812 Mon Sep 17 00:00:00 2001 From: David Caldwell Date: Fri, 19 Mar 2010 00:04:07 -0700 Subject: [PATCH] [Makefile] Add "make install PREFIX=xxx" target --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index cc2d415..56d9749 100644 --- a/Makefile +++ b/Makefile @@ -21,3 +21,12 @@ commit-patch-$(VERSION).tar.gz: commit-patch commit-partial commit-patch-buffer. rsync -a $^ commit-patch-$(VERSION) tar czf commit-patch-$(VERSION).tar.gz commit-patch-$(VERSION) rm -rf commit-patch-$(VERSION) + +PREFIX=/usr/local +install: + mkdir -p "$(PREFIX)/bin" + mkdir -p "$(PREFIX)/share/man/man1" + mkdir -p "$(PREFIX)/share/emacs/site-lisp" + cp -a commit-patch commit-partial "$(PREFIX)/bin" + cp -a commit-patch.1 commit-partial.1 "$(PREFIX)/share/man/man1" + cp -a commit-patch-buffer.el "$(PREFIX)/share/emacs/site-lisp" -- 2.51.2