2020-08-08 13:49:49 +02:00
|
|
|
# -*- makefile-gmake -*-
|
2010-03-21 10:54:08 +01:00
|
|
|
|
2010-04-05 21:59:06 +02:00
|
|
|
.PHONY: all
|
2019-10-20 03:52:56 +02:00
|
|
|
all: notmuch notmuch-shared build-man build-info ruby-bindings python-cffi-bindings
|
2010-04-01 07:12:01 +02:00
|
|
|
ifeq ($(MAKECMDGOALS),)
|
2010-04-16 21:10:23 +02:00
|
|
|
ifeq ($(shell cat .first-build-message 2>/dev/null),)
|
2010-04-02 23:06:32 +02:00
|
|
|
@NOTMUCH_FIRST_BUILD=1 $(MAKE) --no-print-directory all
|
2010-04-01 07:12:01 +02:00
|
|
|
@echo ""
|
|
|
|
@echo "Compilation of notmuch is now complete. You can install notmuch with:"
|
|
|
|
@echo ""
|
|
|
|
@echo " make install"
|
|
|
|
@echo ""
|
|
|
|
@echo "Note that depending on the prefix to which you are installing"
|
|
|
|
@echo "you may need root permission (such as \"sudo make install\")."
|
|
|
|
@echo "See \"./configure --help\" for help on setting an alternate prefix."
|
2010-04-02 23:06:32 +02:00
|
|
|
@echo Printed > .first-build-message
|
|
|
|
endif
|
2010-04-01 07:12:01 +02:00
|
|
|
endif
|
|
|
|
|
2014-03-19 21:37:09 +01:00
|
|
|
# Depend (also) on the file 'version'. In case of ifeq ($(IS_GIT),yes)
|
|
|
|
# this file may already have been updated.
|
2020-10-28 15:44:35 +01:00
|
|
|
version.stamp: $(srcdir)/version.txt
|
2014-03-19 21:37:09 +01:00
|
|
|
echo $(VERSION) > $@
|
|
|
|
|
2010-04-06 00:43:51 +02:00
|
|
|
$(TAR_FILE):
|
2014-05-04 01:11:35 +02:00
|
|
|
if git tag -v $(UPSTREAM_TAG) >/dev/null 2>&1; then \
|
|
|
|
ref=$(UPSTREAM_TAG); \
|
2011-07-03 22:28:47 +02:00
|
|
|
else \
|
|
|
|
ref="HEAD" ; \
|
|
|
|
echo "Warning: No signed tag for $(VERSION)"; \
|
|
|
|
fi ; \
|
|
|
|
git archive --format=tar --prefix=$(PACKAGE)-$(VERSION)/ $$ref > $(TAR_FILE).tmp
|
2010-04-16 19:37:32 +02:00
|
|
|
echo $(VERSION) > version.tmp
|
2017-12-12 07:39:20 +01:00
|
|
|
ct=`git --no-pager log -1 --pretty=format:%ct $$ref` ; \
|
2017-04-08 21:00:17 +02:00
|
|
|
tar --owner root --group root --append -f $(TAR_FILE).tmp \
|
|
|
|
--transform s_^_$(PACKAGE)-$(VERSION)/_ \
|
2017-12-12 07:39:20 +01:00
|
|
|
--transform 's_.tmp$$__' --mtime=@$$ct version.tmp
|
2010-04-16 19:37:32 +02:00
|
|
|
rm version.tmp
|
2019-03-19 11:08:19 +01:00
|
|
|
xz -C sha256 -9 < $(TAR_FILE).tmp > $(TAR_FILE)
|
2010-04-16 20:24:43 +02:00
|
|
|
@echo "Source is ready for release in $(TAR_FILE)"
|
2010-04-06 00:26:08 +02:00
|
|
|
|
2017-03-02 01:44:47 +01:00
|
|
|
$(SHA256_FILE): $(TAR_FILE)
|
2019-03-23 13:35:43 +01:00
|
|
|
sha256sum $^ | gpg --clear-sign --output $@ -
|
2010-04-06 00:43:51 +02:00
|
|
|
|
2019-03-23 13:35:44 +01:00
|
|
|
$(DETACHED_SIG_FILE): $(TAR_FILE)
|
2019-02-13 03:17:03 +01:00
|
|
|
gpg --armor --detach-sign $^
|
2010-04-06 00:43:51 +02:00
|
|
|
|
2010-04-05 23:22:00 +02:00
|
|
|
.PHONY: dist
|
2010-04-06 00:43:51 +02:00
|
|
|
dist: $(TAR_FILE)
|
|
|
|
|
2011-11-18 03:26:25 +01:00
|
|
|
.PHONY: update-versions
|
|
|
|
|
2014-03-05 14:34:10 +01:00
|
|
|
update-versions:
|
2015-03-07 08:31:14 +01:00
|
|
|
sed -i -e "s/^__VERSION__[[:blank:]]*=.*$$/__VERSION__ = \'${VERSION}\'/" \
|
|
|
|
-e "s/^SOVERSION[[:blank:]]*=.*$$/SOVERSION = \'${LIBNOTMUCH_VERSION_MAJOR}\'/" \
|
|
|
|
${PV_FILE}
|
2020-11-08 12:27:48 +01:00
|
|
|
cp version.txt bindings/python-cffi
|
2011-11-18 03:26:25 +01:00
|
|
|
|
2010-04-06 01:37:44 +02:00
|
|
|
# We invoke make recursively only to force ordering of our phony
|
|
|
|
# targets in the case of parallel invocation of make (-j).
|
2010-04-16 19:37:32 +02:00
|
|
|
#
|
|
|
|
# We carefully ensure that our VERSION variable is passed down to any
|
2011-03-10 00:02:42 +01:00
|
|
|
# sub-ordinate make invocations (which won't otherwise know that they
|
2010-04-16 19:37:32 +02:00
|
|
|
# are part of the release and need to take the version from the
|
|
|
|
# version file).
|
2010-04-06 00:26:08 +02:00
|
|
|
.PHONY: release
|
2020-07-16 13:11:26 +02:00
|
|
|
release: verify-source-tree-and-version sphinx-html
|
2010-04-16 20:03:25 +02:00
|
|
|
$(MAKE) VERSION=$(VERSION) verify-newer
|
2011-07-17 14:52:05 +02:00
|
|
|
$(MAKE) VERSION=$(VERSION) clean
|
2010-04-16 19:37:32 +02:00
|
|
|
$(MAKE) VERSION=$(VERSION) test
|
2011-07-29 17:45:12 +02:00
|
|
|
git tag -s -m "$(PACKAGE) $(VERSION) release" $(UPSTREAM_TAG)
|
2019-03-23 13:35:44 +01:00
|
|
|
$(MAKE) VERSION=$(VERSION) $(SHA256_FILE) $(DETACHED_SIG_FILE)
|
2011-07-17 14:55:50 +02:00
|
|
|
ln -sf $(TAR_FILE) $(DEB_TAR_FILE)
|
2011-07-29 17:45:12 +02:00
|
|
|
pristine-tar commit $(DEB_TAR_FILE) $(UPSTREAM_TAG)
|
|
|
|
git tag -s -m "$(PACKAGE) Debian $(VERSION)-1 upload (same as $(VERSION))" $(DEB_TAG)
|
2010-04-16 01:28:13 +02:00
|
|
|
mkdir -p releases
|
2019-03-23 13:35:44 +01:00
|
|
|
mv $(TAR_FILE) $(SHA256_FILE) $(DETACHED_SIG_FILE) releases
|
2010-04-16 19:37:32 +02:00
|
|
|
$(MAKE) VERSION=$(VERSION) release-message > $(PACKAGE)-$(VERSION).announce
|
2011-07-04 13:39:04 +02:00
|
|
|
ifeq ($(REALLY_UPLOAD),yes)
|
2018-04-28 13:34:48 +02:00
|
|
|
git push origin $(VERSION) $(DEB_TAG) release pristine-tar
|
2019-03-23 13:35:44 +01:00
|
|
|
cd releases && scp $(TAR_FILE) $(SHA256_FILE) $(DETACHED_SIG_FILE) $(RELEASE_HOST):$(RELEASE_DIR)
|
2011-12-05 12:39:32 +01:00
|
|
|
ssh $(RELEASE_HOST) "rm -f $(RELEASE_DIR)/LATEST-$(PACKAGE)-* ; ln -s $(TAR_FILE) $(RELEASE_DIR)/LATEST-$(TAR_FILE)"
|
2020-07-16 13:11:26 +02:00
|
|
|
rsync --verbose --delete --recursive doc/_build/html/ $(RELEASE_HOST):$(DOC_DIR)
|
2011-07-04 13:39:04 +02:00
|
|
|
endif
|
2010-04-16 17:33:31 +02:00
|
|
|
@echo "Please send a release announcement using $(PACKAGE)-$(VERSION).announce as a template."
|
2010-04-06 00:26:08 +02:00
|
|
|
|
2011-07-29 17:45:12 +02:00
|
|
|
.PHONY: pre-release
|
|
|
|
pre-release:
|
|
|
|
$(MAKE) VERSION=$(VERSION) clean
|
|
|
|
$(MAKE) VERSION=$(VERSION) test
|
|
|
|
git tag -s -m "$(PACKAGE) $(VERSION) release" $(UPSTREAM_TAG)
|
|
|
|
git tag -s -m "$(PACKAGE) Debian $(VERSION)-1 upload (same as $(VERSION))" $(DEB_TAG)
|
2020-06-16 16:17:55 +02:00
|
|
|
$(MAKE) VERSION=$(VERSION) $(SHA256_FILE) $(DETACHED_SIG_FILE)
|
2011-07-29 17:45:12 +02:00
|
|
|
ln -sf $(TAR_FILE) $(DEB_TAR_FILE)
|
|
|
|
pristine-tar commit $(DEB_TAR_FILE) $(UPSTREAM_TAG)
|
|
|
|
mkdir -p releases
|
|
|
|
mv $(TAR_FILE) $(DEB_TAR_FILE) releases
|
|
|
|
|
2011-10-13 03:23:33 +02:00
|
|
|
.PHONY: debian-snapshot
|
|
|
|
debian-snapshot:
|
|
|
|
make VERSION=$(VERSION) clean
|
2019-12-04 09:47:38 +01:00
|
|
|
RETVAL=0 && \
|
|
|
|
TMPFILE=$$(mktemp /tmp/notmuch.XXXXXX) && \
|
|
|
|
cp debian/changelog $${TMPFILE} && \
|
|
|
|
(EDITOR=/bin/true dch -b -v $(VERSION)+1 \
|
|
|
|
-D UNRELEASED 'test build, not for upload' && \
|
|
|
|
echo '3.0 (native)' > debian/source/format && \
|
|
|
|
debuild -us -uc); RETVAL=$$? \
|
|
|
|
mv -f $${TMPFILE} debian/changelog; \
|
|
|
|
echo '3.0 (quilt)' > debian/source/format; \
|
|
|
|
exit $$RETVAL
|
2011-10-13 03:23:33 +02:00
|
|
|
|
2010-04-06 01:37:44 +02:00
|
|
|
.PHONY: release-message
|
|
|
|
release-message:
|
|
|
|
@echo "To: notmuch@notmuchmail.org"
|
|
|
|
@echo "Subject: $(PACKAGE) release $(VERSION) now available"
|
|
|
|
@echo ""
|
2010-04-06 02:24:20 +02:00
|
|
|
@echo "Where to obtain notmuch $(VERSION)"
|
2010-04-06 01:37:44 +02:00
|
|
|
@echo "==========================="
|
|
|
|
@echo " $(RELEASE_URL)/$(TAR_FILE)"
|
|
|
|
@echo ""
|
|
|
|
@echo "Which can be verified with:"
|
|
|
|
@echo ""
|
2017-03-13 02:31:16 +01:00
|
|
|
@echo " $(RELEASE_URL)/$(SHA256_FILE)"
|
2010-04-06 01:37:44 +02:00
|
|
|
@echo -n " "
|
2017-03-13 02:31:16 +01:00
|
|
|
@cat releases/$(SHA256_FILE)
|
2010-04-06 01:37:44 +02:00
|
|
|
@echo ""
|
2019-03-23 13:35:44 +01:00
|
|
|
@echo " $(RELEASE_URL)/$(DETACHED_SIG_FILE)"
|
2010-04-06 01:37:44 +02:00
|
|
|
@echo " (signed by `getent passwd "$$USER" | cut -d: -f 5 | cut -d, -f 1`)"
|
2010-04-06 02:24:20 +02:00
|
|
|
@echo ""
|
|
|
|
@echo "What's new in notmuch $(VERSION)"
|
|
|
|
@echo "========================="
|
2010-04-16 17:31:46 +02:00
|
|
|
@sed -ne '/^[Nn]otmuch $(VERSION)/{n;n;b NEWS}; d; :NEWS /^===/q; {p;n;b NEWS}' < NEWS | head -n -2
|
2010-04-06 02:24:20 +02:00
|
|
|
@echo ""
|
|
|
|
@echo "What is notmuch"
|
|
|
|
@echo "==============="
|
|
|
|
@echo "Notmuch is a system for indexing, searching, reading, and tagging"
|
|
|
|
@echo "large collections of email messages in maildir or mh format. It uses"
|
|
|
|
@echo "the Xapian library to provide fast, full-text search with a convenient"
|
|
|
|
@echo "search syntax."
|
|
|
|
@echo ""
|
2016-06-02 18:26:14 +02:00
|
|
|
@echo "For more about notmuch, see https://notmuchmail.org"
|
2010-04-06 02:24:20 +02:00
|
|
|
|
2010-04-16 22:00:35 +02:00
|
|
|
# This is a chain of dependencies rather than a simple list simply to
|
|
|
|
# avoid the messages getting interleaved in the case of a parallel
|
|
|
|
# make invocation.
|
|
|
|
.PHONY: verify-source-tree-and-version
|
|
|
|
verify-source-tree-and-version: verify-no-dirty-code
|
|
|
|
|
2010-04-16 05:03:30 +02:00
|
|
|
.PHONY: verify-no-dirty-code
|
2012-09-04 16:49:13 +02:00
|
|
|
verify-no-dirty-code: release-checks
|
2010-04-16 20:24:43 +02:00
|
|
|
ifeq ($(IS_GIT),yes)
|
2010-04-16 05:03:30 +02:00
|
|
|
@printf "Checking that source tree is clean..."
|
2014-05-06 21:35:28 +02:00
|
|
|
ifneq ($(shell git --git-dir=${srcdir}/.git ls-files -m),)
|
2010-04-16 05:03:30 +02:00
|
|
|
@echo "No"
|
|
|
|
@echo "The following files have been modified since the most recent git commit:"
|
|
|
|
@echo ""
|
2014-05-06 21:35:28 +02:00
|
|
|
@git --git-dir=${srcdir}/.git ls-files -m
|
2010-04-16 05:03:30 +02:00
|
|
|
@echo ""
|
|
|
|
@echo "The release will be made from the committed state, but perhaps you meant"
|
|
|
|
@echo "to commit this code first? Please clean this up to make it more clear."
|
|
|
|
@false
|
|
|
|
else
|
|
|
|
@echo "Good"
|
|
|
|
endif
|
2010-04-16 20:24:43 +02:00
|
|
|
endif
|
2010-04-06 01:37:44 +02:00
|
|
|
|
2012-09-04 16:49:13 +02:00
|
|
|
.PHONY: release-checks
|
|
|
|
release-checks:
|
|
|
|
devel/release-checks.sh
|
2010-04-06 00:26:08 +02:00
|
|
|
|
2010-04-16 01:23:57 +02:00
|
|
|
.PHONY: verify-newer
|
2010-04-16 01:28:13 +02:00
|
|
|
verify-newer:
|
2010-04-06 00:43:51 +02:00
|
|
|
@echo -n "Checking that no $(VERSION) release already exists..."
|
2015-10-30 11:12:50 +01:00
|
|
|
@wget -q --no-check-certificate -O /dev/null $(RELEASE_URL)/$(TAR_FILE) ; \
|
2011-07-03 20:18:30 +02:00
|
|
|
case $$? in \
|
|
|
|
8) echo "Good." ;; \
|
|
|
|
0) echo "Ouch."; \
|
|
|
|
echo "Found: $(RELEASE_URL)/$(TAR_FILE)"; \
|
|
|
|
echo "Refusing to replace an existing release."; \
|
|
|
|
echo "Don't forget to update \"version\" as described in RELEASING before release." ; \
|
|
|
|
false ;; \
|
2018-01-02 16:32:38 +01:00
|
|
|
*) echo "An unexpected error occurred"; \
|
2011-07-03 20:18:30 +02:00
|
|
|
false;; esac
|
2010-04-05 23:22:00 +02:00
|
|
|
|
2010-04-01 07:12:01 +02:00
|
|
|
# The user has not set any verbosity, default to quiet mode and inform the
|
|
|
|
# user how to enable verbose compiles.
|
|
|
|
ifeq ($(V),)
|
|
|
|
quiet_DOC := "Use \"$(MAKE) V=1\" to see the verbose compile lines.\n"
|
2017-08-29 20:27:08 +02:00
|
|
|
quiet = @printf $(quiet_DOC)$(eval quiet_DOC:=)"$(1) $(or $(2),$@)\n"; $($(word 1, $(1)))
|
2010-04-01 07:12:01 +02:00
|
|
|
endif
|
|
|
|
# The user has explicitly enabled quiet compilation.
|
|
|
|
ifeq ($(V),0)
|
2017-08-29 20:27:08 +02:00
|
|
|
quiet = @printf "$(1) $(or $(2),$@)\n"; $($(word 1, $(1)))
|
2010-04-01 07:12:01 +02:00
|
|
|
endif
|
|
|
|
# Otherwise, print the full command line.
|
2017-08-29 20:27:07 +02:00
|
|
|
quiet ?= $($(word 1, $(1)))
|
2010-04-01 07:12:01 +02:00
|
|
|
|
|
|
|
%.o: %.cc $(global_deps)
|
2013-11-03 15:05:35 +01:00
|
|
|
@mkdir -p $(patsubst %/.,%,.deps/$(@D))
|
2013-05-26 03:28:13 +02:00
|
|
|
$(call quiet,CXX $(CPPFLAGS) $(CXXFLAGS)) -c $(FINAL_CXXFLAGS) $< -o $@ -MD -MP -MF .deps/$*.d
|
2010-04-01 07:12:01 +02:00
|
|
|
|
|
|
|
%.o: %.c $(global_deps)
|
2013-11-03 15:05:35 +01:00
|
|
|
@mkdir -p $(patsubst %/.,%,.deps/$(@D))
|
2013-05-26 03:28:13 +02:00
|
|
|
$(call quiet,CC $(CPPFLAGS) $(CFLAGS)) -c $(FINAL_CFLAGS) $< -o $@ -MD -MP -MF .deps/$*.d
|
2010-04-01 07:12:01 +02:00
|
|
|
|
2017-08-29 13:35:26 +02:00
|
|
|
CPPCHECK=cppcheck
|
|
|
|
.stamps/cppcheck/%: %
|
|
|
|
@mkdir -p $(@D)
|
|
|
|
$(call quiet,CPPCHECK,$<) --template=gcc --error-exitcode=1 --quiet $<
|
|
|
|
@touch $@
|
|
|
|
|
|
|
|
CLEAN := $(CLEAN) .stamps
|
|
|
|
|
2010-04-01 07:12:01 +02:00
|
|
|
.PHONY : clean
|
|
|
|
clean:
|
2017-08-29 20:27:09 +02:00
|
|
|
rm -rf $(CLEAN)
|
2010-04-01 07:12:01 +02:00
|
|
|
|
2010-04-06 23:18:05 +02:00
|
|
|
.PHONY: distclean
|
|
|
|
distclean: clean
|
2012-08-02 14:30:31 +02:00
|
|
|
rm -rf $(DISTCLEAN)
|
2010-04-06 23:18:05 +02:00
|
|
|
|
2014-05-04 08:10:49 +02:00
|
|
|
.PHONY: dataclean
|
|
|
|
dataclean: distclean
|
|
|
|
rm -rf $(DATACLEAN)
|
|
|
|
|
2009-11-10 21:03:05 +01:00
|
|
|
notmuch_client_srcs = \
|
2017-05-10 21:42:09 +02:00
|
|
|
$(notmuch_compat_srcs) \
|
2011-12-01 01:27:26 +01:00
|
|
|
command-line-arguments.c\
|
2009-11-22 01:44:31 +01:00
|
|
|
debugger.c \
|
2015-09-06 15:15:45 +02:00
|
|
|
status.c \
|
2009-11-22 01:44:31 +01:00
|
|
|
gmime-filter-reply.c \
|
2011-12-08 23:48:29 +01:00
|
|
|
hooks.c \
|
2009-11-10 21:03:05 +01:00
|
|
|
notmuch.c \
|
2013-10-02 22:30:47 +02:00
|
|
|
notmuch-compact.c \
|
2009-11-12 02:01:55 +01:00
|
|
|
notmuch-config.c \
|
2009-11-21 08:15:07 +01:00
|
|
|
notmuch-count.c \
|
2009-11-10 21:03:05 +01:00
|
|
|
notmuch-dump.c \
|
2013-06-23 14:20:45 +02:00
|
|
|
notmuch-insert.c \
|
2009-11-10 21:03:05 +01:00
|
|
|
notmuch-new.c \
|
2017-06-04 14:32:35 +02:00
|
|
|
notmuch-reindex.c \
|
2009-11-06 19:00:38 +01:00
|
|
|
notmuch-reply.c \
|
2009-11-10 21:03:05 +01:00
|
|
|
notmuch-restore.c \
|
|
|
|
notmuch-search.c \
|
|
|
|
notmuch-setup.c \
|
|
|
|
notmuch-show.c \
|
|
|
|
notmuch-tag.c \
|
|
|
|
notmuch-time.c \
|
2012-07-23 12:39:45 +02:00
|
|
|
sprinter-json.c \
|
2012-12-06 22:12:11 +01:00
|
|
|
sprinter-sexp.c \
|
2012-07-23 12:39:45 +02:00
|
|
|
sprinter-text.c \
|
2009-11-06 19:00:38 +01:00
|
|
|
query-string.c \
|
2011-12-24 19:52:44 +01:00
|
|
|
mime-node.c \
|
2012-11-13 02:54:16 +01:00
|
|
|
tag-util.c
|
2009-11-10 21:03:05 +01:00
|
|
|
|
|
|
|
notmuch_client_modules = $(notmuch_client_srcs:.c=.o)
|
2010-04-02 00:03:40 +02:00
|
|
|
|
2014-03-19 21:37:09 +01:00
|
|
|
notmuch.o: version.stamp
|
|
|
|
|
2017-03-14 12:10:07 +01:00
|
|
|
notmuch: $(notmuch_client_modules) lib/libnotmuch.a util/libnotmuch_util.a parse-time-string/libparse-time-string.a
|
2010-04-12 01:44:51 +02:00
|
|
|
$(call quiet,CXX $(CFLAGS)) $^ $(FINAL_LIBNOTMUCH_LDFLAGS) -o $@
|
2010-04-02 00:03:40 +02:00
|
|
|
|
2010-04-12 01:44:53 +02:00
|
|
|
notmuch-shared: $(notmuch_client_modules) lib/$(LINKER_NAME)
|
2010-04-16 20:51:56 +02:00
|
|
|
$(call quiet,$(FINAL_NOTMUCH_LINKER) $(CFLAGS)) $(notmuch_client_modules) $(FINAL_NOTMUCH_LDFLAGS) -o $@
|
2009-11-10 16:14:49 +01:00
|
|
|
|
2010-04-05 21:59:06 +02:00
|
|
|
.PHONY: install
|
2018-05-21 22:08:51 +02:00
|
|
|
install: all install-man install-info
|
2011-01-26 14:29:15 +01:00
|
|
|
mkdir -p "$(DESTDIR)$(prefix)/bin/"
|
|
|
|
install notmuch-shared "$(DESTDIR)$(prefix)/bin/notmuch"
|
2010-03-10 19:48:47 +01:00
|
|
|
ifeq ($(MAKECMDGOALS), install)
|
2010-03-10 19:07:34 +01:00
|
|
|
@echo ""
|
2010-04-06 19:35:20 +02:00
|
|
|
@echo "Notmuch is now installed to $(DESTDIR)$(prefix)"
|
2010-03-10 19:07:34 +01:00
|
|
|
@echo ""
|
2010-06-01 19:46:52 +02:00
|
|
|
@echo "New users should simply run \"notmuch\" to be guided"
|
|
|
|
@echo "through the process of configuring notmuch and creating"
|
|
|
|
@echo "a database of existing email messages. The \"notmuch\""
|
|
|
|
@echo "command will also offer some sample search commands."
|
2011-01-23 14:33:43 +01:00
|
|
|
ifeq ($(WITH_EMACS), 1)
|
2010-06-01 19:46:52 +02:00
|
|
|
@echo ""
|
|
|
|
@echo "Beyond the command-line interface, notmuch also offers"
|
|
|
|
@echo "a full-featured interface for reading and writing mail"
|
|
|
|
@echo "within emacs. To use this, each user should add the"
|
|
|
|
@echo "following line to the ~/.emacs file:"
|
2010-03-10 19:07:34 +01:00
|
|
|
@echo ""
|
2010-04-06 19:35:20 +02:00
|
|
|
@echo " (require 'notmuch)"
|
2010-03-10 19:48:47 +01:00
|
|
|
@echo ""
|
2010-06-01 19:46:52 +02:00
|
|
|
@echo "And then run emacs as \"emacs -f notmuch\" or invoke"
|
|
|
|
@echo "the command \"M-x notmuch\" from within emacs."
|
2010-03-10 19:48:47 +01:00
|
|
|
endif
|
2011-01-23 14:33:43 +01:00
|
|
|
endif
|
2009-11-10 16:14:49 +01:00
|
|
|
|
2009-11-10 21:03:05 +01:00
|
|
|
SRCS := $(SRCS) $(notmuch_client_srcs)
|
2014-05-04 08:10:48 +02:00
|
|
|
CLEAN := $(CLEAN) notmuch notmuch-shared $(notmuch_client_modules)
|
|
|
|
CLEAN := $(CLEAN) version.stamp notmuch-*.tar.gz.tmp
|
2017-08-29 20:27:09 +02:00
|
|
|
CLEAN := $(CLEAN) .deps
|
2012-01-15 21:20:23 +01:00
|
|
|
|
2020-08-16 17:27:11 +02:00
|
|
|
DISTCLEAN := $(DISTCLEAN) .first-build-message Makefile.config sh.config sphinx.config
|
2012-08-02 14:30:31 +02:00
|
|
|
|
2017-08-29 13:35:26 +02:00
|
|
|
CPPCHECK_STAMPS := $(SRCS:%=.stamps/cppcheck/%)
|
|
|
|
.PHONY: cppcheck
|
|
|
|
ifeq ($(HAVE_CPPCHECK),1)
|
|
|
|
cppcheck: ${CPPCHECK_STAMPS}
|
|
|
|
else
|
|
|
|
cppcheck:
|
|
|
|
@echo "No cppcheck found during configure; skipping static checking"
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2012-01-15 21:20:23 +01:00
|
|
|
DEPS := $(SRCS:%.c=.deps/%.d)
|
|
|
|
DEPS := $(DEPS:%.cc=.deps/%.d)
|
|
|
|
-include $(DEPS)
|
2014-01-25 13:33:55 +01:00
|
|
|
|
|
|
|
.SUFFIXES: # Delete the default suffixes. Old-Fashioned Suffix Rules not used.
|