2020-08-08 13:49:49 +02:00
|
|
|
# -*- makefile-gmake -*-
|
2010-03-21 09:54:08 +00:00
|
|
|
|
2010-04-05 12:59:06 -07:00
|
|
|
.PHONY: all
|
2019-10-19 22:52:56 -03:00
|
|
|
all: notmuch notmuch-shared build-man build-info ruby-bindings python-cffi-bindings
|
2010-03-31 22:12:01 -07:00
|
|
|
ifeq ($(MAKECMDGOALS),)
|
2010-04-16 12:10:23 -07:00
|
|
|
ifeq ($(shell cat .first-build-message 2>/dev/null),)
|
2010-04-02 14:06:32 -07:00
|
|
|
@NOTMUCH_FIRST_BUILD=1 $(MAKE) --no-print-directory all
|
2010-03-31 22:12:01 -07: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 14:06:32 -07:00
|
|
|
@echo Printed > .first-build-message
|
|
|
|
endif
|
2010-03-31 22:12:01 -07:00
|
|
|
endif
|
|
|
|
|
2014-03-19 22:37:09 +02: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 22:37:09 +02:00
|
|
|
echo $(VERSION) > $@
|
|
|
|
|
2010-04-05 15:43:51 -07:00
|
|
|
$(TAR_FILE):
|
2014-05-04 08:11:35 +09:00
|
|
|
if git tag -v $(UPSTREAM_TAG) >/dev/null 2>&1; then \
|
|
|
|
ref=$(UPSTREAM_TAG); \
|
2011-07-03 17:28:47 -03:00
|
|
|
else \
|
|
|
|
ref="HEAD" ; \
|
|
|
|
echo "Warning: No signed tag for $(VERSION)"; \
|
|
|
|
fi ; \
|
|
|
|
git archive --format=tar --prefix=$(PACKAGE)-$(VERSION)/ $$ref > $(TAR_FILE).tmp
|
2020-11-08 12:58:03 -04:00
|
|
|
echo $(VERSION) > version.txt.tmp
|
2017-12-12 08:39:20 +02:00
|
|
|
ct=`git --no-pager log -1 --pretty=format:%ct $$ref` ; \
|
2017-04-08 22:00:17 +03:00
|
|
|
tar --owner root --group root --append -f $(TAR_FILE).tmp \
|
|
|
|
--transform s_^_$(PACKAGE)-$(VERSION)/_ \
|
2020-11-08 12:58:03 -04:00
|
|
|
--transform 's_.tmp$$__' --mtime=@$$ct version.txt.tmp
|
|
|
|
rm version.txt.tmp
|
2019-03-19 07:08:19 -03:00
|
|
|
xz -C sha256 -9 < $(TAR_FILE).tmp > $(TAR_FILE)
|
2010-04-16 11:24:43 -07:00
|
|
|
@echo "Source is ready for release in $(TAR_FILE)"
|
2010-04-05 15:26:08 -07:00
|
|
|
|
2017-03-01 20:44:47 -04:00
|
|
|
$(SHA256_FILE): $(TAR_FILE)
|
2019-03-23 13:35:43 +01:00
|
|
|
sha256sum $^ | gpg --clear-sign --output $@ -
|
2010-04-05 15:43:51 -07:00
|
|
|
|
2019-03-23 13:35:44 +01:00
|
|
|
$(DETACHED_SIG_FILE): $(TAR_FILE)
|
2019-02-12 22:17:03 -04:00
|
|
|
gpg --armor --detach-sign $^
|
2010-04-05 15:43:51 -07:00
|
|
|
|
2010-04-05 14:22:00 -07:00
|
|
|
.PHONY: dist
|
2010-04-05 15:43:51 -07:00
|
|
|
dist: $(TAR_FILE)
|
|
|
|
|
2011-11-17 22:26:25 -04:00
|
|
|
.PHONY: update-versions
|
|
|
|
|
2014-03-05 09:34:10 -04: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 07:27:48 -04:00
|
|
|
cp version.txt bindings/python-cffi
|
2011-11-17 22:26:25 -04:00
|
|
|
|
2010-04-05 16:37:44 -07: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 10:37:32 -07:00
|
|
|
#
|
|
|
|
# We carefully ensure that our VERSION variable is passed down to any
|
2011-03-09 15:02:42 -08:00
|
|
|
# sub-ordinate make invocations (which won't otherwise know that they
|
2010-04-16 10:37:32 -07:00
|
|
|
# are part of the release and need to take the version from the
|
|
|
|
# version file).
|
2010-04-05 15:26:08 -07:00
|
|
|
.PHONY: release
|
2020-11-08 13:33:08 -04:00
|
|
|
release: verify-source-tree-and-version
|
2010-04-16 11:03:25 -07:00
|
|
|
$(MAKE) VERSION=$(VERSION) verify-newer
|
2011-07-17 09:52:05 -03:00
|
|
|
$(MAKE) VERSION=$(VERSION) clean
|
2020-11-08 13:33:08 -04:00
|
|
|
$(MAKE) VERSION=$(VERSION) sphinx-html
|
2010-04-16 10:37:32 -07: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 09:55:50 -03:00
|
|
|
ln -sf $(TAR_FILE) $(DEB_TAR_FILE)
|
2011-07-29 17:45:12 +02:00
|
|
|
pristine-tar commit $(DEB_TAR_FILE) $(UPSTREAM_TAG)
|
2010-04-15 16:28:13 -07:00
|
|
|
mkdir -p releases
|
2019-03-23 13:35:44 +01:00
|
|
|
mv $(TAR_FILE) $(SHA256_FILE) $(DETACHED_SIG_FILE) releases
|
2010-04-16 10:37:32 -07:00
|
|
|
$(MAKE) VERSION=$(VERSION) release-message > $(PACKAGE)-$(VERSION).announce
|
2011-07-04 08:39:04 -03:00
|
|
|
ifeq ($(REALLY_UPLOAD),yes)
|
2020-12-25 12:26:35 -04:00
|
|
|
git push origin $(VERSION) 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 13:39:32 +02:00
|
|
|
ssh $(RELEASE_HOST) "rm -f $(RELEASE_DIR)/LATEST-$(PACKAGE)-* ; ln -s $(TAR_FILE) $(RELEASE_DIR)/LATEST-$(TAR_FILE)"
|
2020-07-16 08:11:26 -03:00
|
|
|
rsync --verbose --delete --recursive doc/_build/html/ $(RELEASE_HOST):$(DOC_DIR)
|
2011-07-04 08:39:04 -03:00
|
|
|
endif
|
2010-04-16 08:33:31 -07:00
|
|
|
@echo "Please send a release announcement using $(PACKAGE)-$(VERSION).announce as a template."
|
2010-04-05 15:26:08 -07: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)
|
2020-06-16 11:17:55 -03: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-12 22:23:33 -03:00
|
|
|
.PHONY: debian-snapshot
|
|
|
|
debian-snapshot:
|
|
|
|
make VERSION=$(VERSION) clean
|
2019-12-04 03:47:38 -05: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-12 22:23:33 -03:00
|
|
|
|
2010-04-05 16:37:44 -07:00
|
|
|
.PHONY: release-message
|
|
|
|
release-message:
|
|
|
|
@echo "To: notmuch@notmuchmail.org"
|
|
|
|
@echo "Subject: $(PACKAGE) release $(VERSION) now available"
|
|
|
|
@echo ""
|
2010-04-05 17:24:20 -07:00
|
|
|
@echo "Where to obtain notmuch $(VERSION)"
|
2010-04-05 16:37:44 -07:00
|
|
|
@echo "==========================="
|
|
|
|
@echo " $(RELEASE_URL)/$(TAR_FILE)"
|
|
|
|
@echo ""
|
|
|
|
@echo "Which can be verified with:"
|
|
|
|
@echo ""
|
2017-03-12 22:31:16 -03:00
|
|
|
@echo " $(RELEASE_URL)/$(SHA256_FILE)"
|
2010-04-05 16:37:44 -07:00
|
|
|
@echo -n " "
|
2017-03-12 22:31:16 -03:00
|
|
|
@cat releases/$(SHA256_FILE)
|
2010-04-05 16:37:44 -07:00
|
|
|
@echo ""
|
2019-03-23 13:35:44 +01:00
|
|
|
@echo " $(RELEASE_URL)/$(DETACHED_SIG_FILE)"
|
2010-04-05 16:37:44 -07:00
|
|
|
@echo " (signed by `getent passwd "$$USER" | cut -d: -f 5 | cut -d, -f 1`)"
|
2010-04-05 17:24:20 -07:00
|
|
|
@echo ""
|
|
|
|
@echo "What's new in notmuch $(VERSION)"
|
|
|
|
@echo "========================="
|
2010-04-16 08:31:46 -07:00
|
|
|
@sed -ne '/^[Nn]otmuch $(VERSION)/{n;n;b NEWS}; d; :NEWS /^===/q; {p;n;b NEWS}' < NEWS | head -n -2
|
2010-04-05 17:24:20 -07: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 12:26:14 -04:00
|
|
|
@echo "For more about notmuch, see https://notmuchmail.org"
|
2010-04-05 17:24:20 -07:00
|
|
|
|
2010-04-16 13:00:35 -07: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-15 20:03:30 -07:00
|
|
|
.PHONY: verify-no-dirty-code
|
2012-09-04 17:49:13 +03:00
|
|
|
verify-no-dirty-code: release-checks
|
2010-04-16 11:24:43 -07:00
|
|
|
ifeq ($(IS_GIT),yes)
|
2010-04-15 20:03:30 -07:00
|
|
|
@printf "Checking that source tree is clean..."
|
2014-05-06 22:35:28 +03:00
|
|
|
ifneq ($(shell git --git-dir=${srcdir}/.git ls-files -m),)
|
2010-04-15 20:03:30 -07:00
|
|
|
@echo "No"
|
|
|
|
@echo "The following files have been modified since the most recent git commit:"
|
|
|
|
@echo ""
|
2014-05-06 22:35:28 +03:00
|
|
|
@git --git-dir=${srcdir}/.git ls-files -m
|
2010-04-15 20:03:30 -07: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 11:24:43 -07:00
|
|
|
endif
|
2010-04-05 16:37:44 -07:00
|
|
|
|
2012-09-04 17:49:13 +03:00
|
|
|
.PHONY: release-checks
|
|
|
|
release-checks:
|
|
|
|
devel/release-checks.sh
|
2010-04-05 15:26:08 -07:00
|
|
|
|
2010-04-15 16:23:57 -07:00
|
|
|
.PHONY: verify-newer
|
2010-04-15 16:28:13 -07:00
|
|
|
verify-newer:
|
2010-04-05 15:43:51 -07:00
|
|
|
@echo -n "Checking that no $(VERSION) release already exists..."
|
2015-10-30 07:12:50 -03:00
|
|
|
@wget -q --no-check-certificate -O /dev/null $(RELEASE_URL)/$(TAR_FILE) ; \
|
2011-07-03 15:18:30 -03: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 10:32:38 -05:00
|
|
|
*) echo "An unexpected error occurred"; \
|
2011-07-03 15:18:30 -03:00
|
|
|
false;; esac
|
2010-04-05 14:22:00 -07:00
|
|
|
|
2010-03-31 22:12:01 -07: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 21:27:08 +03:00
|
|
|
quiet = @printf $(quiet_DOC)$(eval quiet_DOC:=)"$(1) $(or $(2),$@)\n"; $($(word 1, $(1)))
|
2010-03-31 22:12:01 -07:00
|
|
|
endif
|
|
|
|
# The user has explicitly enabled quiet compilation.
|
|
|
|
ifeq ($(V),0)
|
2017-08-29 21:27:08 +03:00
|
|
|
quiet = @printf "$(1) $(or $(2),$@)\n"; $($(word 1, $(1)))
|
2010-03-31 22:12:01 -07:00
|
|
|
endif
|
|
|
|
# Otherwise, print the full command line.
|
2017-08-29 21:27:07 +03:00
|
|
|
quiet ?= $($(word 1, $(1)))
|
2010-03-31 22:12:01 -07:00
|
|
|
|
|
|
|
%.o: %.cc $(global_deps)
|
2013-11-03 16:05:35 +02:00
|
|
|
@mkdir -p $(patsubst %/.,%,.deps/$(@D))
|
2013-05-25 22:28:13 -03:00
|
|
|
$(call quiet,CXX $(CPPFLAGS) $(CXXFLAGS)) -c $(FINAL_CXXFLAGS) $< -o $@ -MD -MP -MF .deps/$*.d
|
2010-03-31 22:12:01 -07:00
|
|
|
|
|
|
|
%.o: %.c $(global_deps)
|
2013-11-03 16:05:35 +02:00
|
|
|
@mkdir -p $(patsubst %/.,%,.deps/$(@D))
|
2013-05-25 22:28:13 -03:00
|
|
|
$(call quiet,CC $(CPPFLAGS) $(CFLAGS)) -c $(FINAL_CFLAGS) $< -o $@ -MD -MP -MF .deps/$*.d
|
2010-03-31 22:12:01 -07:00
|
|
|
|
2017-08-29 08:35:26 -03:00
|
|
|
CPPCHECK=cppcheck
|
|
|
|
.stamps/cppcheck/%: %
|
|
|
|
@mkdir -p $(@D)
|
|
|
|
$(call quiet,CPPCHECK,$<) --template=gcc --error-exitcode=1 --quiet $<
|
|
|
|
@touch $@
|
|
|
|
|
|
|
|
CLEAN := $(CLEAN) .stamps
|
|
|
|
|
2010-03-31 22:12:01 -07:00
|
|
|
.PHONY : clean
|
|
|
|
clean:
|
2017-08-29 21:27:09 +03:00
|
|
|
rm -rf $(CLEAN)
|
2010-03-31 22:12:01 -07:00
|
|
|
|
2010-04-06 14:18:05 -07:00
|
|
|
.PHONY: distclean
|
|
|
|
distclean: clean
|
2012-08-02 09:30:31 -03:00
|
|
|
rm -rf $(DISTCLEAN)
|
2010-04-06 14:18:05 -07:00
|
|
|
|
2014-05-04 15:10:49 +09:00
|
|
|
.PHONY: dataclean
|
|
|
|
dataclean: distclean
|
|
|
|
rm -rf $(DATACLEAN)
|
|
|
|
|
2009-11-10 12:03:05 -08:00
|
|
|
notmuch_client_srcs = \
|
2017-05-10 22:42:09 +03:00
|
|
|
$(notmuch_compat_srcs) \
|
2011-11-30 16:27:26 -08:00
|
|
|
command-line-arguments.c\
|
2009-11-22 00:44:31 +00:00
|
|
|
debugger.c \
|
2015-09-06 10:15:45 -03:00
|
|
|
status.c \
|
2009-11-22 00:44:31 +00:00
|
|
|
gmime-filter-reply.c \
|
2011-12-09 00:48:29 +02:00
|
|
|
hooks.c \
|
2009-11-10 12:03:05 -08:00
|
|
|
notmuch.c \
|
2013-10-02 16:30:47 -04:00
|
|
|
notmuch-compact.c \
|
2009-11-11 17:01:55 -08:00
|
|
|
notmuch-config.c \
|
2009-11-20 23:15:07 -08:00
|
|
|
notmuch-count.c \
|
2009-11-10 12:03:05 -08:00
|
|
|
notmuch-dump.c \
|
2013-06-23 22:20:45 +10:00
|
|
|
notmuch-insert.c \
|
2009-11-10 12:03:05 -08:00
|
|
|
notmuch-new.c \
|
2017-06-04 09:32:35 -03:00
|
|
|
notmuch-reindex.c \
|
2009-11-06 10:00:38 -08:00
|
|
|
notmuch-reply.c \
|
2009-11-10 12:03:05 -08: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 10:00:38 -08:00
|
|
|
query-string.c \
|
2011-12-24 13:52:44 -05:00
|
|
|
mime-node.c \
|
2012-11-12 21:54:16 -04:00
|
|
|
tag-util.c
|
2009-11-10 12:03:05 -08:00
|
|
|
|
|
|
|
notmuch_client_modules = $(notmuch_client_srcs:.c=.o)
|
2010-04-01 15:03:40 -07:00
|
|
|
|
2014-03-19 22:37:09 +02:00
|
|
|
notmuch.o: version.stamp
|
|
|
|
|
2017-03-14 08:10:07 -03:00
|
|
|
notmuch: $(notmuch_client_modules) lib/libnotmuch.a util/libnotmuch_util.a parse-time-string/libparse-time-string.a
|
2010-04-11 19:44:51 -04:00
|
|
|
$(call quiet,CXX $(CFLAGS)) $^ $(FINAL_LIBNOTMUCH_LDFLAGS) -o $@
|
2010-04-01 15:03:40 -07:00
|
|
|
|
2010-04-11 19:44:53 -04:00
|
|
|
notmuch-shared: $(notmuch_client_modules) lib/$(LINKER_NAME)
|
2010-04-16 11:51:56 -07:00
|
|
|
$(call quiet,$(FINAL_NOTMUCH_LINKER) $(CFLAGS)) $(notmuch_client_modules) $(FINAL_NOTMUCH_LDFLAGS) -o $@
|
2009-11-10 07:14:49 -08:00
|
|
|
|
2010-04-05 12:59:06 -07:00
|
|
|
.PHONY: install
|
2018-05-21 13:08:51 -07:00
|
|
|
install: all install-man install-info
|
2011-01-26 23:29:15 +10:00
|
|
|
mkdir -p "$(DESTDIR)$(prefix)/bin/"
|
|
|
|
install notmuch-shared "$(DESTDIR)$(prefix)/bin/notmuch"
|
2010-03-10 10:48:47 -08:00
|
|
|
ifeq ($(MAKECMDGOALS), install)
|
2010-03-10 10:07:34 -08:00
|
|
|
@echo ""
|
2010-04-06 10:35:20 -07:00
|
|
|
@echo "Notmuch is now installed to $(DESTDIR)$(prefix)"
|
2010-03-10 10:07:34 -08:00
|
|
|
@echo ""
|
2010-06-01 10:46:52 -07: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 10:46:52 -07: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 10:07:34 -08:00
|
|
|
@echo ""
|
2010-04-06 10:35:20 -07:00
|
|
|
@echo " (require 'notmuch)"
|
2010-03-10 10:48:47 -08:00
|
|
|
@echo ""
|
2010-06-01 10:46:52 -07:00
|
|
|
@echo "And then run emacs as \"emacs -f notmuch\" or invoke"
|
|
|
|
@echo "the command \"M-x notmuch\" from within emacs."
|
2010-03-10 10:48:47 -08:00
|
|
|
endif
|
2011-01-23 14:33:43 +01:00
|
|
|
endif
|
2009-11-10 07:14:49 -08:00
|
|
|
|
2009-11-10 12:03:05 -08:00
|
|
|
SRCS := $(SRCS) $(notmuch_client_srcs)
|
2014-05-04 15:10:48 +09:00
|
|
|
CLEAN := $(CLEAN) notmuch notmuch-shared $(notmuch_client_modules)
|
|
|
|
CLEAN := $(CLEAN) version.stamp notmuch-*.tar.gz.tmp
|
2017-08-29 21:27:09 +03:00
|
|
|
CLEAN := $(CLEAN) .deps
|
2012-01-15 15:20:23 -05:00
|
|
|
|
2020-08-16 12:27:11 -03:00
|
|
|
DISTCLEAN := $(DISTCLEAN) .first-build-message Makefile.config sh.config sphinx.config
|
2012-08-02 09:30:31 -03:00
|
|
|
|
2017-08-29 08:35:26 -03: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 15:20:23 -05:00
|
|
|
DEPS := $(SRCS:%.c=.deps/%.d)
|
|
|
|
DEPS := $(DEPS:%.cc=.deps/%.d)
|
|
|
|
-include $(DEPS)
|
2014-01-25 14:33:55 +02:00
|
|
|
|
|
|
|
.SUFFIXES: # Delete the default suffixes. Old-Fashioned Suffix Rules not used.
|