From 37af2b4395af27b8e53ce66f8593f5175e0f2180 Mon Sep 17 00:00:00 2001 From: Don Garrett Date: Sun, 12 May 2013 16:52:19 -0700 Subject: [PATCH] Add ability for DESTDIR to be more flexible during "make install". In particular, "make install" now works when DESTDIR is set to /usr/local. --- Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index a5a7c6d..67655f1 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ usage: @echo "make imapsync_elf_x86.bin" @echo "make publish" - +DESTDIR ?= /usr DIST_NAME=imapsync-$(VERSION) DIST_FILE=$(DIST_NAME).tgz DEB_FILE=$(DIST_NAME).deb @@ -74,12 +74,12 @@ imapsync.1: imapsync pod2man imapsync > imapsync.1 install: testp imapsync.1 - mkdir -p $(DESTDIR)/usr/bin - install imapsync $(DESTDIR)/usr/bin/imapsync - chmod 755 $(DESTDIR)/usr/bin/imapsync - mkdir -p $(DESTDIR)/usr/share/man/man1 - install imapsync.1 $(DESTDIR)/usr/share/man/man1/imapsync.1 - chmod 644 $(DESTDIR)/usr/share/man/man1/imapsync.1 + mkdir -p $(DESTDIR)/bin + install imapsync $(DESTDIR)/bin/imapsync + chmod 755 $(DESTDIR)/bin/imapsync + mkdir -p $(DESTDIR)/share/man/man1 + install imapsync.1 $(DESTDIR)/share/man/man1/imapsync.1 + chmod 644 $(DESTDIR)/share/man/man1/imapsync.1 .PHONY: cidone ci