2012-03-26 10:45:58 +02:00
|
|
|
NAME = notmuch-mutt
|
|
|
|
|
2018-09-16 19:08:07 +02:00
|
|
|
-include ../../Makefile.config
|
|
|
|
PERL_ABSOLUTE ?= $(shell command -v perl 2>/dev/null)
|
|
|
|
prefix ?= /usr/local
|
|
|
|
sysconfdir ?= ${prefix}/etc
|
|
|
|
mandir ?= ${prefix}/share/man
|
|
|
|
|
2012-03-26 10:45:58 +02:00
|
|
|
all: $(NAME) $(NAME).1
|
|
|
|
|
|
|
|
$(NAME).1: $(NAME)
|
|
|
|
pod2man $< > $@
|
|
|
|
|
|
|
|
README.html: README
|
|
|
|
markdown $< > $@
|
|
|
|
|
2018-09-16 19:08:07 +02:00
|
|
|
install: all
|
2020-03-16 19:27:42 +01:00
|
|
|
mkdir -p $(DESTDIR)$(prefix)/bin $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(sysconfdir)/Muttrc.d
|
2018-09-16 19:08:07 +02:00
|
|
|
sed "1s|^#!.*|#! $(PERL_ABSOLUTE)|" < $(NAME) > $(DESTDIR)$(prefix)/bin/$(NAME)
|
|
|
|
chmod 755 $(DESTDIR)$(prefix)/bin/$(NAME)
|
2020-03-16 19:27:42 +01:00
|
|
|
install -m 644 $(NAME).1 $(DESTDIR)$(mandir)/man1/
|
|
|
|
install -m 644 $(NAME).rc $(DESTDIR)$(sysconfdir)/Muttrc.d/
|
2018-09-16 19:08:07 +02:00
|
|
|
|
2012-03-26 10:45:58 +02:00
|
|
|
clean:
|
|
|
|
rm -f notmuch-mutt.1 README.html
|