mirror of
https://github.com/imapsync/imapsync.git
synced 2025-06-07 13:15:22 +02:00
Add PREFIX= to Makefile, revert DESTDIR= to previous usage
This commit is contained in:
parent
9225c473e4
commit
f9c9223de1
1 changed files with 7 additions and 7 deletions
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
|
PREFIX ?= /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)/bin
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||||
install imapsync $(DESTDIR)/bin/imapsync
|
install imapsync $(DESTDIR)$(PREFIX)/bin/imapsync
|
||||||
chmod 755 $(DESTDIR)/bin/imapsync
|
chmod 755 $(DESTDIR)$(PREFIX)/bin/imapsync
|
||||||
mkdir -p $(DESTDIR)/share/man/man1
|
mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
|
||||||
install imapsync.1 $(DESTDIR)/share/man/man1/imapsync.1
|
install imapsync.1 $(DESTDIR)$(PREFIX)/share/man/man1/imapsync.1
|
||||||
chmod 644 $(DESTDIR)/share/man/man1/imapsync.1
|
chmod 644 $(DESTDIR)$(PREFIX)/share/man/man1/imapsync.1
|
||||||
|
|
||||||
.PHONY: cidone ci
|
.PHONY: cidone ci
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue