Run "make distclean" before "make dist" in the new "distcheck" rule

This commit is contained in:
Pierre Pronchery 2014-10-31 01:31:23 +01:00
parent 9df8d67590
commit 76f58f4182

View File

@ -1673,7 +1673,9 @@ static int _write_distcheck(Configure * configure, FILE * fp)
return 0;
fputs("\ndistcheck: dist\n", fp);
fputs("\t$(TAR) -xzvf $(PACKAGE)-$(VERSION).tar.gz\n", fp);
fputs("\t(cd \"$(PACKAGE)-$(VERSION)\" && $(MAKE) all dist)\n", fp);
fputs("\t(cd \"$(PACKAGE)-$(VERSION)\" && $(MAKE))\n", fp);
fputs("\t(cd \"$(PACKAGE)-$(VERSION)\" && $(MAKE) distclean)\n", fp);
fputs("\t(cd \"$(PACKAGE)-$(VERSION)\" && $(MAKE) dist)\n", fp);
fputs("\t$(RM) -r -- $(PACKAGE)-$(VERSION)\n", fp);
return 0;
}