From ace57a50f9bd392bfda4200e7080eedcd4860aa8 Mon Sep 17 00:00:00 2001 From: Rhiannon Morris Date: Sat, 20 Mar 2021 11:07:23 +0100 Subject: [PATCH] fix weird conditional in makefile --- Makefile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 55eda37..45820b4 100644 --- a/Makefile +++ b/Makefile @@ -70,15 +70,10 @@ $(MAKEPAGES): make-pages/*.hs make-pages/make-pages.cabal $(TMPDIR)/index.mk: $(DATADIR)/index.yaml $(YAMLS) $(MAKEPAGES) $(call depend-gallery) -ifneq ($(MAKECMDGOALS),mostlyclean) -ifneq ($(MAKECMDGOALS),clean) -ifneq ($(MAKECMDGOALS),distclean) -ifneq ($(MAKECMDGOALS),list-tags) +NODEPS := mostlyclean clean distclean list-tags +ifeq ($(filter-out $(NODEPS),$(MAKECMDGOALS)),) -include $(TMPDIR)/index.mk endif -endif -endif -endif .PHONY: clean distclean