summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-11-23 15:30:12 (GMT)
committerGitHub <noreply@github.com>2018-11-23 15:30:12 (GMT)
commitf653fd4d950ac092719b6152e38d77c62b443125 (patch)
tree813f190500f8577a17c144c1c1601e8c0848a8b5 /Makefile.pre.in
parenta1c40014085d5cc6c12064577e8c10e7182ee9f9 (diff)
downloadcpython-f653fd4d950ac092719b6152e38d77c62b443125.zip
cpython-f653fd4d950ac092719b6152e38d77c62b443125.tar.gz
cpython-f653fd4d950ac092719b6152e38d77c62b443125.tar.bz2
bpo-35296: make install now installs the internal API (GH-10665)
make install now also installs the internal API: Include/internal/*.h header files.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 2b5afae..5a21adb 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -1446,11 +1446,21 @@ inclinstall:
else true; \
fi; \
done
+ @if test ! -d $(DESTDIR)$(INCLUDEPY)/internal; then \
+ echo "Creating directory $(DESTDIR)$(INCLUDEPY)/internal"; \
+ $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(INCLUDEPY)/internal; \
+ else true; \
+ fi
@for i in $(srcdir)/Include/*.h; \
do \
echo $(INSTALL_DATA) $$i $(INCLUDEPY); \
$(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY); \
done
+ @for i in $(srcdir)/Include/internal/*.h; \
+ do \
+ echo $(INSTALL_DATA) $$i $(INCLUDEPY)/internal; \
+ $(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY)/internal; \
+ done
$(INSTALL_DATA) pyconfig.h $(DESTDIR)$(CONFINCLUDEPY)/pyconfig.h
# Install the library and miscellaneous stuff needed for extending/embedding