Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aa20b00

Browse files
committed
Issue #17161: make install now also installs a python3 man page.
2 parents 70ea7fa + a48b61f commit aa20b00

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

Makefile.pre.in

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -886,10 +886,10 @@ quicktest: all platform
886886
$(TESTRUNNER) $(QUICKTESTOPTS)
887887

888888

889-
install: altinstall bininstall
889+
install: altinstall bininstall maninstall
890890

891891
altinstall: @FRAMEWORKALTINSTALLFIRST@ altbininstall libinstall inclinstall libainstall \
892-
sharedinstall oldsharedinstall maninstall @FRAMEWORKALTINSTALLLAST@
892+
sharedinstall oldsharedinstall altmaninstall @FRAMEWORKALTINSTALLLAST@
893893

894894
# Install shared libraries enabled by Setup
895895
DESTDIRS= $(exec_prefix) $(LIBDIR) $(BINLIBDEST) $(DESTSHARED)
@@ -970,8 +970,8 @@ bininstall: altbininstall
970970
-rm -f $(DESTDIR)$(BINDIR)/pyvenv
971971
(cd $(DESTDIR)$(BINDIR); $(LN) -s pyvenv-$(VERSION) pyvenv)
972972

973-
# Install the manual page
974-
maninstall:
973+
# Install the versioned manual page
974+
altmaninstall:
975975
@for i in $(MANDIR) $(MANDIR)/man1; \
976976
do \
977977
if test ! -d $(DESTDIR)$$i; then \
@@ -983,6 +983,11 @@ maninstall:
983983
$(INSTALL_DATA) $(srcdir)/Misc/python.man \
984984
$(DESTDIR)$(MANDIR)/man1/python$(VERSION).1
985985

986+
# Install the unversioned manual page
987+
maninstall: altmaninstall
988+
-rm -f $(DESTDIR)$(MANDIR)/man1/python3.1
989+
(cd $(DESTDIR)$(MANDIR)/man1; $(LN) -s python$(VERSION).1 python3.1)
990+
986991
# Install the library
987992
PLATDIR= plat-$(MACHDEP)
988993
EXTRAPLATDIR= @EXTRAPLATDIR@
@@ -1452,7 +1457,7 @@ Python/thread.o: @THREADHEADERS@
14521457
.PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure
14531458
.PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools
14541459
.PHONY: frameworkaltinstallunixtools recheck autoconf clean clobber distclean
1455-
.PHONY: smelly funny patchcheck touch
1460+
.PHONY: smelly funny patchcheck touch altmaninstall
14561461
.PHONY: gdbhooks
14571462

14581463
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,8 @@ Build
663663
Retina displays. Applies to Tkinter apps, such as IDLE, on OS X
664664
framework builds linked with Cocoa Tk 8.5.
665665

666+
- Issue #17161: make install now also installs a python3 man page.
667+
666668
Tools/Demos
667669
-----------
668670

0 commit comments

Comments
 (0)