From be979b8c009619b3b15d7c5aa4b5c59be8d91d1c Mon Sep 17 00:00:00 2001 From: Rhiannon Morris Date: Tue, 21 Jul 2020 11:27:31 +0200 Subject: [PATCH] don't generate deps for clean --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 405fbbd..2b52445 100644 --- a/Makefile +++ b/Makefile @@ -62,7 +62,11 @@ $(TMPDIR)/index.mk: $(DATADIR)/index.yaml $(DATADIR) $(MAKEPAGES) $(MAKEPAGES) $(MPFLAGS) depend-gallery $< -o $@ \ -B $(BUILDDIR) -D $(DATADIR) -T $(TMPDIR) -I $(INFONAME) +ifneq ($(MAKECMDGOALS),clean) +ifneq ($(MAKECMDGOALS),distclean) -include $(TMPDIR)/index.mk +endif +endif .PHONY: clean distclean