dmc

dynamic mail client
git clone git://git.suckless.org/dmc
Log | Files | Refs | README | LICENSE

commit 430af23a0c875e6d2aca0d71b43f012bbd773438
parent a46c35a576129d7b85963e601e9a359159e4ca6d
Author: pancake <nopcode.org>
Date:   Wed, 11 Aug 2010 19:39:53 +0200

* Honor DESTDIR
Diffstat:
Makefile | 30++++++++++++++++--------------
config.mk | 11++++++-----
2 files changed, 22 insertions(+), 19 deletions(-)

diff --git a/Makefile b/Makefile @@ -8,6 +8,7 @@ endif CFLAGS+=-DHAVE_SSL=${HAVE_SSL} CFLAGS+=-DVERSION=\"${VERSION}\" CFLAGS+=-DPREFIX=\"${PREFIX}\" +pfx=${DESTDIR}/${PREFIX} BINS=dmc dmc-mbox dmc-smtp dmc-pop3 dmc-imap4 dmc-pack dmc-filter dmc-mbox @@ -43,22 +44,23 @@ dmc-imap4: sock.tmp imap4.o install: chmod +x dmc dmc-tag dmc-mdir - cp -f dmc.1 ${PREFIX}/share/man/man1 - cp -f dmc ${PREFIX}/bin - cp -f dmc.sh ${PREFIX}/bin - cp -f dmc-tag ${PREFIX}/bin - cp -f dmc-smtp ${PREFIX}/bin - cp -f dmc-pop3 ${PREFIX}/bin - cp -f dmc-imap4 ${PREFIX}/bin - cp -f dmc-pack ${PREFIX}/bin - cp -f dmc-filter ${PREFIX}/bin - cp -f dmc-mbox ${PREFIX}/bin - cp -f dmc-mdir ${PREFIX}/bin + mkdir -p ${pfx}/share/man/man1 ${pfx}/bin + cp -f dmc.1 ${pfx}/share/man/man1 + cp -f dmc ${pfx}/bin + cp -f dmc.sh ${pfx}/bin + cp -f dmc-tag ${pfx}/bin + cp -f dmc-smtp ${pfx}/bin + cp -f dmc-pop3 ${pfx}/bin + cp -f dmc-imap4 ${pfx}/bin + cp -f dmc-pack ${pfx}/bin + cp -f dmc-filter ${pfx}/bin + cp -f dmc-mbox ${pfx}/bin + cp -f dmc-mdir ${pfx}/bin uninstall: - rm -f ${PREFIX}/bin/dmc - rm -f ${PREFIX}/bin/dmc-* - rm -f ${PREFIX}/share/man/man1/dmc.1 + rm -f ${pfx}/bin/dmc + rm -f ${pfx}/bin/dmc-* + rm -f ${pfx}/share/man/man1/dmc.1 clean: rm -f ${BINS} *.o sock.tmp diff --git a/config.mk b/config.mk @@ -1,7 +1,8 @@ -VERSION = 0.1 +VERSION=0.1 -PREFIX ?= /usr -CFLAGS ?= -Wall -HAVE_SSL = 1 +DESTDIR?= +PREFIX?=/usr +CFLAGS?=-Wall +HAVE_SSL=1 -CC ?= gcc +CC?=gcc