Skip to content

Commit

Permalink
pythongh-97731: fix distclean target to clean docs (python#97732)
Browse files Browse the repository at this point in the history
fix distclean target to clean docs
  • Loading branch information
smontanaro committed Oct 4, 2022
1 parent 116fa62 commit 46eecc3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Makefile.pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -1863,7 +1863,7 @@ altbininstall: $(BUILDPYTHON) @FRAMEWORKPYTHONW@
$(DSYMUTIL_PATH) $(DESTDIR)$(PYTHONFRAMEWORKPREFIX)/$(INSTSONAME); \
fi \
fi


bininstall: altbininstall
if test ! -d $(DESTDIR)$(LIBPC); then \
Expand Down Expand Up @@ -2432,8 +2432,7 @@ rmtestturds:
-rm -f gb-18030-2000.xml

docclean:
-rm -rf Doc/build
-rm -rf Doc/tools/sphinx Doc/tools/pygments Doc/tools/docutils
$(MAKE) -C Doc clean

# like the 'clean' target but retain the profile guided optimization (PGO)
# data. The PGO data is only valid if source code remains unchanged.
Expand Down Expand Up @@ -2485,7 +2484,7 @@ clobber: clean
# Make things extra clean, before making a distribution:
# remove all generated files, even Makefile[.pre]
# Keep configure and Python-ast.[ch], it's possible they can't be generated
distclean: clobber
distclean: clobber docclean
for file in $(srcdir)/Lib/test/data/* ; do \
if test "$$file" != "$(srcdir)/Lib/test/data/README"; then rm "$$file"; fi; \
done
Expand Down

0 comments on commit 46eecc3

Please sign in to comment.