-%.o: %.c
- $(CC) -c $(CFLAGS) $(NOTMUCH_CFLAGS) $< -o $@
-
-notmuch: $(MAIN) $(LIBRARY)
- $(CC) $(NOTMUCH_LDFLAGS) $^ -o $@
-
-.depends: *.c lib/*.c lib/*.cc
- $(CXX) -M $(CPPFLAGS) $(NOTMUCH_DEPENDS_FLAGS) \
- $(NOTMUCH_CXX_DEPENDS_FLAGS) $^ > $@
--include .depends
-
-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
-
-clean:
- rm -f $(PROGS) lib/*.o *.o .depends