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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
|
m4_divert(-1)
_
_ <pysrcs>
_
m4_divert(5)
m4_srclist(PYDIST_PY_SRCS)
m4_srcitem($(PYDIST_SYSCFG_SRCS))
m4_divert(-1)
m4_define([PYCDIR],[_
m4_ifelse([$1],[],_
[m4_divert(1)]_
m4_srclist([PYDIST_SRCS])
[m4_divert(-1)],_
[$2],[1],_
[m4_divert(1)]_
m4_srclist([PYDIST_]m4_pathvar([$1][_SRCS]))
[m4_divert(-1)])_
_
m4_divert(2)_
m4_ifelse([$1],[],
[m4_divert(-1)],
m4_tab[mkdir -p $(PYDIST_PYCDIR)/./][$1])
_
m4_divert(3)_
m4_ifelse([$1],[],
m4_rightalign(64,[$(PYDIST_PYCDIR)/./][%.py:])[pydist.tag],_
m4_rightalign(64,[$(PYDIST_PYCDIR)/./][$1]/[%.py:])[pydist.tag])
_
m4_divert(4)
m4_ifelse([$1],[],
[$(PYDIST_PYCDIR)/./][%.py: \]
m4_tabtabtab([$(SOURCE_DIR)/Lib/./][[$1]][%.py pydist.tag]),
[$(PYDIST_PYCDIR)/./][$1]/[%.py: \]
m4_tabtabtab([$(SOURCE_DIR)/Lib/./][[$1]]/[%.py pydist.tag]))
m4_tabtab[PYCOPY_PYTHON=$(PYCOPY_PYTHON) \]
m4_tabtab[PYCOPY_PREFIX=$(PYCOPY_PREFIX) \]
m4_tabtab[PYCOPY_DSTDIR=$(PYDIST_PYCDIR)/./][$1] \
m4_tabtab[$(PYCOPY) $<]
_
m4_ifelse([$1],[],_
[m4_divert(5)]_
m4_srcitem([$(PYDIST_SRCS)])
[m4_divert(-1)],
[$2],[1],_
[m4_divert(5)]_
m4_srcitem([$(PYDIST_]m4_pathvar([$1][_SRCS)]))
[m4_divert(-1)])
_
m4_divert(6)_
m4_tab[mkdir -p $(DESTDIR)/$(LIBDIR)/$(PACKAGE)/./][$1]
m4_divert(-1)
_
m4_ifelse([$1],[],_
[m4_divert(7)]_
m4_tab[]_
m4_rightalign(64,[cp -p $(PYDIST_SRCS)])_
[$(DESTDIR)/$(LIBDIR)/$(PACKAGE)/./]
[m4_divert(-1)],
[$2],[1],_
[m4_divert(7)]_
m4_tab[]_
m4_rightalign(64,[cp -p $(PYDIST_]m4_pathvar([$1][_SRCS)]))_
[$(DESTDIR)/$(LIBDIR)/$(PACKAGE)/./][$1]
[m4_divert(-1)])
_
m4_ifelse([$1],[],_
[m4_divert(8)]_
m4_tab[]_
m4_rightalign(68,[cp -p $(PYDIST_SRCS:%.py=%.pyc)])_
[$(DESTDIR)/$(LIBDIR)/$(PACKAGE)/./]
[m4_divert(-1)],
[$2],[1],_
[m4_divert(8)]_
m4_tab[]_
m4_rightalign(68,[cp -p $(PYDIST_]m4_pathvar([$1][_SRCS])[:%.py=%.pyc)])_
[$(DESTDIR)/$(LIBDIR)/$(PACKAGE)/./][$1]
[m4_divert(-1)])
])
m4_define([PYCSRC],[_
m4_divert(1)_
m4_srcitem($(PYDIST_PYCDIR)/./[$1])]_
m4_divert(-1))
_
_ </pysrcs>
_
_
_ <pydist.tag>
_
m4_divert(2)
pydist.tag:
m4_divert(-1)
_
m4_m4wrap([_
m4_divert(2)_
m4_tab[touch pydist.tag]
m4_divert(-1)_
])
_
_ </pydist.tag>
_
m4_divert(3)
m4_divert(4)
_
_ <pydist-install-tree>
_
m4_divert(6)
pydist-install-tree:
m4_divert(-1)
_
_ </pydist-install-tree>
_
_
_ <pydist-install-py>
_
m4_divert(7)
pydist-install-py: $(PYDIST_PY_SRCS)
pydist-install-py: pydist-install-tree
pydist-install-py:
m4_tab[]_
m4_rightalign([64],[cp -p $(PYDIST_SYSCFG_SRCS)])_
[$(DESTDIR)/$(LIBDIR)/$(PACKAGE)]
m4_divert(-1)
_
_ <pydist-install-py>
_
_
_ <pydist-install-pyc>
_
m4_divert(8)
pydist-install-pyc: $(PYCGEN_OBJS)
pydist-install-pyc: pydist-install-tree
pydist-install-pyc:
m4_tab[]_
m4_rightalign(68,[cp -p $(PYDIST_SYSCFG_SRCS:%.py=%.pyc)])_
[$(DESTDIR)/$(LIBDIR)/$(PACKAGE)]
m4_divert(-1)
_
_ <pydist-install-py>
_
m4_divert(-1)
|