diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-12-04 21:28:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-04 21:28:28 +0100 |
commit | b02774f42108aaf18eb19865472c8d5cd95b5f11 (patch) | |
tree | 94acbfdbd6fea63a29cfd68336ae3eef33890fb5 /Makefile.pre.in | |
parent | 0091f349cde179ea991f4ee4d095119cd1fc3802 (diff) | |
download | cpython-git-b02774f42108aaf18eb19865472c8d5cd95b5f11.tar.gz |
bpo-35296: make install now installs the internal API (GH-10665) (GH-10897)
* bpo-35296: make install now installs the internal API (GH-10665)
make install now also installs the internal API: Include/internal/*.h
header files.
(cherry picked from commit f653fd4d950ac092719b6152e38d77c62b443125)
* Windows installer now also install Include/internal/
The Windows installer (MSI) now also install header files of the
Include/internal/ subdirectory.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index afbc8f8c9b..7d9cbd5c8b 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -1443,11 +1443,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 |