diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-05-24 20:23:57 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-05-24 20:23:57 (GMT) |
commit | f2caeed9c694ed584e26716a7ce55f8fd83554ca (patch) | |
tree | adf2959bcc8b1995c210520bea3c6ee1d88c3a45 /Makefile.pre.in | |
parent | 0b09c42ffec7b56b7f94c11d160ca083944c9cf8 (diff) | |
download | cpython-f2caeed9c694ed584e26716a7ce55f8fd83554ca.zip cpython-f2caeed9c694ed584e26716a7ce55f8fd83554ca.tar.gz cpython-f2caeed9c694ed584e26716a7ce55f8fd83554ca.tar.bz2 |
Issue #3585: Add pkg-config support.
It creates a python-2.7.pc file and a python.pc symlink in the
$(LIBDIR)/pkgconfig directory. Patch by Clinton Roy.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index eff2f58..b59c346 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -770,6 +770,8 @@ bininstall: altbininstall (cd $(DESTDIR)$(BINDIR); $(LN) python$(VERSION)$(EXE) $(PYTHON)) -rm -f $(DESTDIR)$(BINDIR)/python-config (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python-config) + -rm -f $(DESTDIR)$(LIBPC)/python.pc + (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python.pc) # Install the interpreter with $(VERSION) affixed # This goes into $(exec_prefix) @@ -946,8 +948,12 @@ inclinstall: # Install the library and miscellaneous stuff needed for extending/embedding # This goes into $(exec_prefix) LIBPL= $(LIBP)/config + +# pkgconfig directory +LIBPC= $(LIBDIR)/pkgconfig + libainstall: all - @for i in $(LIBDIR) $(LIBP) $(LIBPL); \ + @for i in $(LIBDIR) $(LIBP) $(LIBPL) $(LIBPC); \ do \ if test ! -d $(DESTDIR)$$i; then \ echo "Creating directory $$i"; \ @@ -974,6 +980,7 @@ libainstall: all $(INSTALL_DATA) Modules/Setup $(DESTDIR)$(LIBPL)/Setup $(INSTALL_DATA) Modules/Setup.local $(DESTDIR)$(LIBPL)/Setup.local $(INSTALL_DATA) Modules/Setup.config $(DESTDIR)$(LIBPL)/Setup.config + $(INSTALL_DATA) Misc/python.pc $(DESTDIR)$(LIBPC)/python-$(VERSION).pc $(INSTALL_SCRIPT) $(srcdir)/Modules/makesetup $(DESTDIR)$(LIBPL)/makesetup $(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh # Substitution happens here, as the completely-expanded BINDIR |