mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit 21d353f91e9cb3869334a9118173d86b3fa8c6da
parent 6229023e78640519c987273558a8649eac1816ca
Author: Christian Neukirchen <chneukirchen@gmail.com>
Date:   Mon,  8 Aug 2016 14:16:45 +0200

Makefile: add install rule

Diffstat:
Makefile | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,6 +1,12 @@ CFLAGS=-g -O2 -Wall -Wno-switch -Wextra -fstack-protector-strong -D_FORTIFY_SOURCE=2 +DESTDIR= +PREFIX=/usr/local +BINDIR=$(PREFIX)/bin +MANDIR=$(PREFIX)/share/man + ALL = maddr magrep mdate mdeliver mdirs mflag mgenmid mhdr minc mlist mmime mpick mscan msed mseq mshow msort mthread +SCRIPT = mcolor mcomp mless mquote all: $(ALL) @@ -29,4 +35,12 @@ README: man/mblaze.7 clean: FRC -rm -f $(ALL) *.o +install: FRC all + mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 + install -m0755 $(ALL) $(SCRIPT) $(DESTDIR)$(BINDIR) + ln -sf mless $(DESTDIR)$(BINDIR)/mnext + ln -sf mless $(DESTDIR)$(BINDIR)/mprev + ln -sf mrepl $(DESTDIR)$(BINDIR)/mcomp + install -m0644 man/*.[0-9] $(DESTDIR)$(MANDIR)/man1 + FRC: