add mostlyclean

This commit is contained in:
Rhiannon Morris 2020-08-01 15:54:39 +02:00
parent 44bf2fc4a4
commit 7dc520cea6

View file

@ -61,6 +61,7 @@ $(MAKEPAGES): make-pages/*.hs make-pages/make-pages.cabal
$(TMPDIR)/index.mk: $(DATADIR)/index.yaml $(YAMLS) $(MAKEPAGES) $(TMPDIR)/index.mk: $(DATADIR)/index.yaml $(YAMLS) $(MAKEPAGES)
$(call depend-gallery) $(call depend-gallery)
ifneq ($(MAKECMDGOALS),mostlyclean)
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)
ifneq ($(MAKECMDGOALS),distclean) ifneq ($(MAKECMDGOALS),distclean)
ifneq ($(MAKECMDGOALS),list-tags) ifneq ($(MAKECMDGOALS),list-tags)
@ -68,15 +69,19 @@ ifneq ($(MAKECMDGOALS),list-tags)
endif endif
endif endif
endif endif
endif
.PHONY: clean distclean .PHONY: mostlyclean clean distclean
clean: mostlyclean:
echo "[clean]" echo "[clean $(BUILDDIR)]"
rm -rf $(BUILDDIR) $(TMPDIR) rm -rf $(BUILDDIR)
clean: mostlyclean
echo "[clean $(TMPDIR)]"
rm -rf $(TMPDIR)
distclean: clean distclean: clean
echo "[distclean]" echo "[cabal clean]"
rm -rf dist-newstyle cabal -v0 v2-clean
.PHONY: list-tags .PHONY: list-tags