mirror of
https://github.com/imapsync/imapsync.git
synced 2024-11-17 00:02:29 +01:00
Add ability for DESTDIR to be more flexible during "make install".
In particular, "make install" now works when DESTDIR is set to /usr/local.
This commit is contained in:
parent
c14f2f1c6b
commit
37af2b4395
14
Makefile
14
Makefile
@ -20,7 +20,7 @@ usage:
|
|||||||
@echo "make imapsync_elf_x86.bin"
|
@echo "make imapsync_elf_x86.bin"
|
||||||
@echo "make publish"
|
@echo "make publish"
|
||||||
|
|
||||||
|
DESTDIR ?= /usr
|
||||||
DIST_NAME=imapsync-$(VERSION)
|
DIST_NAME=imapsync-$(VERSION)
|
||||||
DIST_FILE=$(DIST_NAME).tgz
|
DIST_FILE=$(DIST_NAME).tgz
|
||||||
DEB_FILE=$(DIST_NAME).deb
|
DEB_FILE=$(DIST_NAME).deb
|
||||||
@ -74,12 +74,12 @@ imapsync.1: imapsync
|
|||||||
pod2man imapsync > imapsync.1
|
pod2man imapsync > imapsync.1
|
||||||
|
|
||||||
install: testp imapsync.1
|
install: testp imapsync.1
|
||||||
mkdir -p $(DESTDIR)/usr/bin
|
mkdir -p $(DESTDIR)/bin
|
||||||
install imapsync $(DESTDIR)/usr/bin/imapsync
|
install imapsync $(DESTDIR)/bin/imapsync
|
||||||
chmod 755 $(DESTDIR)/usr/bin/imapsync
|
chmod 755 $(DESTDIR)/bin/imapsync
|
||||||
mkdir -p $(DESTDIR)/usr/share/man/man1
|
mkdir -p $(DESTDIR)/share/man/man1
|
||||||
install imapsync.1 $(DESTDIR)/usr/share/man/man1/imapsync.1
|
install imapsync.1 $(DESTDIR)/share/man/man1/imapsync.1
|
||||||
chmod 644 $(DESTDIR)/usr/share/man/man1/imapsync.1
|
chmod 644 $(DESTDIR)/share/man/man1/imapsync.1
|
||||||
|
|
||||||
.PHONY: cidone ci
|
.PHONY: cidone ci
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user