mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 12:28:09 +01:00
1a6208bfbd
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.
16 lines
406 B
Text
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
|