add mostlyclean
This commit is contained in:
parent
44bf2fc4a4
commit
7dc520cea6
1 changed files with 11 additions and 6 deletions
17
Makefile
17
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue