diff --git a/Makefile b/Makefile index 45820b4..6d84b2b 100644 --- a/Makefile +++ b/Makefile @@ -71,7 +71,8 @@ $(TMPDIR)/index.mk: $(DATADIR)/index.yaml $(YAMLS) $(MAKEPAGES) $(call depend-gallery) NODEPS := mostlyclean clean distclean list-tags -ifeq ($(filter-out $(NODEPS),$(MAKECMDGOALS)),) +GOALS := $(if $(strip $(MAKECMDGOALS)),$(strip $(MAKECMDGOALS)),all) +ifneq ($(filter-out $(NODEPS),$(GOALS)),) -include $(TMPDIR)/index.mk endif