Blame project/pyinst.mk

1ff94f
# install-symlink
1ff94f
PYTHON_APP_VER		= $(NICKNAME)$(OS_APP_SUFFIX)
1ff94f
PYTHON_APP_MAJOR	= $(NICKNAME:$(PYTHON_VER)=$(PYTHON_MAJOR))$(OS_APP_SUFFIX)
1ff94f
1ff94f
PYTHON_MAN_VER		= $(NICKNAME).1
1ff94f
PYTHON_MAN_MAJOR	= $(NICKNAME:$(PYTHON_VER)=$(PYTHON_MAJOR)).1
1ff94f
1ff94f
PYTHON_APP_EXTDIR	= $(DESTDIR)/$(LIBDIR)/$(PACKAGE)/lib-dynload
1ff94f
PYTHON_APP_MANDIR	= $(DESTDIR)/$(MANDIR)/man1
1ff94f
1ff94f
install-man:
1ff94f
			mkdir -p $(PYTHON_APP_MANDIR)
1ff94f
			cp -p $(SOURCE_DIR)/Misc/python.man             $(PYTHON_APP_MANDIR)/$(PYTHON_MAN_VER)
1ff94f
			ln -s $(PYTHON_MAN_VER)                         $(PYTHON_APP_MANDIR)/$(PYTHON_MAN_MAJOR).tmp
1ff94f
			mv $(PYTHON_APP_MANDIR)/$(PYTHON_MAN_MAJOR).tmp $(PYTHON_APP_MANDIR)/$(PYTHON_MAN_MAJOR)
1ff94f
1ff94f
1ff94f
# install-app-libdir
1ff94f
install-app-extdir:
1ff94f
			mkdir -p $(PYTHON_APP_EXTDIR)
1ff94f
1ff94f
install-app-symlink:
1ff94f
			mkdir -p $(DESTDIR)/$(BINDIR)
1ff94f
			ln -s $(PYTHON_APP_VER)                         $(DESTDIR)/$(BINDIR)/$(PYTHON_APP_MAJOR).tmp
1ff94f
			mv $(DESTDIR)/$(BINDIR)/$(PYTHON_APP_MAJOR).tmp $(DESTDIR)/$(BINDIR)/$(PYTHON_APP_MAJOR)
1ff94f
1ff94f
# install-pyext
1ff94f
install-pyext:		$(PYEXT_SHARED)
1ff94f
			mkdir -p $(PYTHON_APP_EXTDIR)
1ff94f
			cp -a $(PYEXT_SHARED) $(PYTHON_APP_EXTDIR)
1ff94f
1ff94f
# install-pyhdr
1ff94f
install-pyhdr:		config.tag
1ff94f
			mkdir -p $(DESTDIR)/$(INCLUDEDIR)/$(PACKAGE)
1ff94f
			cp -p $(API_HEADERS) $(DESTDIR)/$(INCLUDEDIR)/$(PACKAGE)
1ff94f
19665f
# install-pyhdr-osapi
19665f
install-pyhdr-osapi:	config.tag
19665f
			mkdir -p $(DESTDIR)/$(INCLUDEDIR)/$(PACKAGE)/osapi
19665f
			cp -p $(PYTHON_OSAPI_HEADERS) $(DESTDIR)/$(INCLUDEDIR)/$(PACKAGE)/osapi
19665f
1ff94f
install-shared:		install-pyext
1ff94f
install-shared:		install-pyhdr
19665f
install-shared:		install-pyhdr-osapi
1ff94f
1ff94f
install-app:		install-man
1ff94f
install-app:		install-app-extdir
1ff94f
install-app:		install-app-symlink
1ff94f
install-app:		pydist-install-py
1ff94f
install-app:		pydist-install-pyc
1ff94f
1ff94f
.PHONE:			install-app-symlink
1ff94f
.PHONE:			install-man
1ff94f
.PHONE:			install-pyext
1ff94f
.PHONE:			install-pyhdr