notmuch/Makefile.local
Carl Worth 1a6208bfbd Makefile: Simplify setting of CFLAGS, etc.
We were previously using separate CFLAGS and NOTMUCH_CFLAGS variables
in an attempt to allow the user to specify CFLAGS on the command-line.

However, that's just a lot of extra noise in the Makefile when we can
instead let the user specify what is desired for CFLAGS and then use
an override to append the things we require. So our Makefile is much
neater now.
2009-11-10 08:27:48 -08:00

16 lines
406 B
Text

all: notmuch
notmuch: notmuch.o lib/notmuch.a
$(CC) $(LDFLAGS) $^ -o $@
notmuch.1.gz:
gzip --stdout notmuch.1 > notmuch.1.gz
install: all notmuch.1.gz
install -C -D notmuch $(DESTDIR)/usr/bin/notmuch
install -C -D notmuch.1.gz $(DESTDIR)/usr/share/man/man1
install -C -D notmuch-completion.bash \
$(DESTDIR)/etc/bash_completion.d/notmuch
SRCS := $(SRCS) notmuch.c
CLEAN := $(CLEAN) notmuch *.o