summaryrefslogtreecommitdiff
path: root/project/pyinst.mk
blob: c18fcd4e82822c21acd6fdc1073a4f5754405b47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# install-symlink
PYTHON_APP_VER		= $(NICKNAME)$(OS_APP_SUFFIX)
PYTHON_APP_MAJOR	= $(NICKNAME:$(PYTHON_VER)=$(PYTHON_MAJOR))$(OS_APP_SUFFIX)

PYTHON_MAN_VER		= $(NICKNAME).1
PYTHON_MAN_MAJOR	= $(NICKNAME:$(PYTHON_VER)=$(PYTHON_MAJOR)).1

PYTHON_APP_EXTDIR	= $(DESTDIR)/$(LIBDIR)/$(PACKAGE)/lib-dynload
PYTHON_APP_MANDIR	= $(DESTDIR)/$(MANDIR)/man1

install-man:
			mkdir -p $(PYTHON_APP_MANDIR)
			cp -p $(SOURCE_DIR)/Misc/python.man             $(PYTHON_APP_MANDIR)/$(PYTHON_MAN_VER)
			ln -s $(PYTHON_MAN_VER)                         $(PYTHON_APP_MANDIR)/$(PYTHON_MAN_MAJOR).tmp
			mv $(PYTHON_APP_MANDIR)/$(PYTHON_MAN_MAJOR).tmp $(PYTHON_APP_MANDIR)/$(PYTHON_MAN_MAJOR)


# install-app-libdir
install-app-extdir:
			mkdir -p $(PYTHON_APP_EXTDIR)

install-app-symlink:
			mkdir -p $(DESTDIR)/$(BINDIR)
			ln -s $(PYTHON_APP_VER)                         $(DESTDIR)/$(BINDIR)/$(PYTHON_APP_MAJOR).tmp
			mv $(DESTDIR)/$(BINDIR)/$(PYTHON_APP_MAJOR).tmp $(DESTDIR)/$(BINDIR)/$(PYTHON_APP_MAJOR)

# install-pyext
install-pyext:		$(PYEXT_SHARED)
			mkdir -p $(PYTHON_APP_EXTDIR)
			cp -a $(PYEXT_SHARED) $(PYTHON_APP_EXTDIR)

# install-pyhdr
install-pyhdr:		config.tag
			mkdir -p $(DESTDIR)/$(INCLUDEDIR)/$(PACKAGE)
			cp -p $(API_HEADERS) $(DESTDIR)/$(INCLUDEDIR)/$(PACKAGE)

# install-pyhdr-osapi
install-pyhdr-osapi:	config.tag
			mkdir -p $(DESTDIR)/$(INCLUDEDIR)/$(PACKAGE)/osapi
			cp -p $(PYTHON_OSAPI_HEADERS) $(DESTDIR)/$(INCLUDEDIR)/$(PACKAGE)/osapi

install-shared:		install-pyext
install-shared:		install-pyhdr
install-shared:		install-pyhdr-osapi

install-app:		install-man
install-app:		install-app-extdir
install-app:		install-app-symlink
install-app:		pydist-install-py
install-app:		pydist-install-pyc

.PHONE:			install-app-symlink
.PHONE:			install-man
.PHONE:			install-pyext
.PHONE:			install-pyhdr