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)
$(call depend-gallery)
ifneq ($(MAKECMDGOALS),mostlyclean)
ifneq ($(MAKECMDGOALS),clean)
ifneq ($(MAKECMDGOALS),distclean)
ifneq ($(MAKECMDGOALS),list-tags)
@ -68,15 +69,19 @@ ifneq ($(MAKECMDGOALS),list-tags)
endif
endif
endif
endif
.PHONY: clean distclean
clean:
echo "[clean]"
rm -rf $(BUILDDIR) $(TMPDIR)
.PHONY: mostlyclean clean distclean
mostlyclean:
echo "[clean $(BUILDDIR)]"
rm -rf $(BUILDDIR)
clean: mostlyclean
echo "[clean $(TMPDIR)]"
rm -rf $(TMPDIR)
distclean: clean
echo "[distclean]"
rm -rf dist-newstyle
echo "[cabal clean]"
cabal -v0 v2-clean
.PHONY: list-tags