build system: remove configure output in Make distclean.

Create a variable DISTCLEAN which contains a list of things to
clean in the distclean target (in addition to running the clean
target).

The deleted comment seems to be false these days, since we do
create files during configuration.

Use "rm -rf" here as well in case we want to add directories to
DISTCLEAN.
This commit is contained in:
David Bremner 2012-08-02 09:30:31 -03:00
parent 8a745d310f
commit 719897cdc3

View file

@ -267,10 +267,9 @@ quiet ?= $($(shell echo $1 | sed -e s'/ .*//'))
clean: clean:
rm -rf $(CLEAN); rm -rf .deps rm -rf $(CLEAN); rm -rf .deps
# We don't (yet) have any distributed files not in the upstream repository.
# So distclean is currently identical to clean.
.PHONY: distclean .PHONY: distclean
distclean: clean distclean: clean
rm -rf $(DISTCLEAN)
notmuch_client_srcs = \ notmuch_client_srcs = \
command-line-arguments.c\ command-line-arguments.c\
@ -339,6 +338,8 @@ install-desktop:
SRCS := $(SRCS) $(notmuch_client_srcs) SRCS := $(SRCS) $(notmuch_client_srcs)
CLEAN := $(CLEAN) notmuch notmuch-shared $(notmuch_client_modules) notmuch.elc CLEAN := $(CLEAN) notmuch notmuch-shared $(notmuch_client_modules) notmuch.elc
DISTCLEAN := $(DISTCLEAN) .first-build-message Makefile.config
DEPS := $(SRCS:%.c=.deps/%.d) DEPS := $(SRCS:%.c=.deps/%.d)
DEPS := $(DEPS:%.cc=.deps/%.d) DEPS := $(DEPS:%.cc=.deps/%.d)
-include $(DEPS) -include $(DEPS)