fix weird conditional in makefile

This commit is contained in:
Rhiannon Morris 2021-03-20 11:07:23 +01:00
parent 7c0a1152c2
commit ace57a50f9
1 changed files with 2 additions and 7 deletions

View File

@ -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