X-Git-Url: http://git.tpope.net/?p=latex-mlastyle.git;a=blobdiff_plain;f=Makefile;h=ab16ecb886c3003f704dda449ecedbce732c5ed1;hp=9a09208209e93029949b05f633a0995493742172;hb=9715a77f990b7e25c456a20dc84992a3fe6d1001;hpb=ece8137cc97412ad0da1a7a5f20ef948edcd11dc diff --git a/Makefile b/Makefile index 9a09208..ab16ecb 100644 --- a/Makefile +++ b/Makefile @@ -53,10 +53,8 @@ clean: distclean: clean rm -f mlastyle.sty mlastyle.dvi mlastyle.ps mlastyle.pdf - rm -rf $(LTXDIR) $(DOCDIR) $(SRCDIR) $(BSTDIR) - rmdir `dirname $(LTXDIR)` `dirname $(DOCDIR)` - rmdir `dirname $(SRCDIR)` `dirname $(BSTDIR)` - rmdir tex doc source bibtex + rm -rf $(LTXDIR)/* $(DOCDIR)/* $(SRCDIR)/* $(BSTDIR)/* + [ ! -d $(LTXDIR) ] || rmdir -p $(LTXDIR) $(DOCDIR) $(SRCDIR) $(BSTDIR) tar: mlastyle.sty mlastyle.dvi clean mkdir mlastyle-$(VERSION)