Blame project/pydist.m4

107b64
m4_divert(-1)
107b64
107b64
_
107b64
_ <pysrcs>
107b64
_
107b64
m4_divert(5)
107b64
m4_srclist(PYDIST_PY_SRCS)
107b64
m4_srcitem($(PYDIST_SYSCFG_SRCS))
107b64
m4_divert(-1)
107b64
107b64
m4_define([PYCDIR],[_
107b64
m4_ifelse([$1],[],_
107b64
[m4_divert(1)]_
107b64
m4_srclist([PYDIST_SRCS])
107b64
[m4_divert(-1)],_
107b64
[$2],[1],_
107b64
[m4_divert(1)]_
107b64
m4_srclist([PYDIST_]m4_pathvar([$1][_SRCS]))
107b64
[m4_divert(-1)])_
107b64
_
107b64
m4_divert(2)_
107b64
m4_ifelse([$1],[],
107b64
[m4_divert(-1)],
107b64
m4_tab[mkdir -p $(PYDIST_PYCDIR)/./][$1]
107b64
m4_tab[mkdir -p $(PYDIST_PYCDIR)/./][$1][/./__pycache__])
107b64
_
107b64
m4_divert(3)_
107b64
m4_ifelse([$1],[],
107b64
m4_rightalign(64,[$(PYDIST_PYCDIR)/./][%.py:])[pydist.tag],_
107b64
m4_rightalign(64,[$(PYDIST_PYCDIR)/./][$1]/[%.py:])[pydist.tag])
107b64
_
107b64
m4_divert(4)
107b64
m4_ifelse([$1],[],
107b64
[$(PYDIST_PYCDIR)/./][%.py: \]
6f17b1
m4_tabtabtab([$(SOURCE_DIR)/Lib/./][[$1]][%.py pydist.tag]),
107b64
[$(PYDIST_PYCDIR)/./][$1]/[%.py: \]
6f17b1
m4_tabtabtab([$(SOURCE_DIR)/Lib/./][[$1]]/[%.py pydist.tag]))
107b64
m4_tabtab[PYCOPY_PYTHON=$(PYCOPY_PYTHON) \]
107b64
m4_tabtab[PYCOPY_PREFIX=$(PYCOPY_PREFIX) \]
107b64
m4_tabtab[PYCOPY_DSTDIR=$(PYDIST_PYCDIR)/./][$1] \
107b64
m4_tabtab[$(PYCOPY) $<]
107b64
_
107b64
m4_ifelse([$1],[],_
107b64
[m4_divert(5)]_
107b64
m4_srcitem([$(PYDIST_SRCS)])
107b64
[m4_divert(-1)],
107b64
[$2],[1],_
107b64
[m4_divert(5)]_
107b64
m4_srcitem([$(PYDIST_]m4_pathvar([$1][_SRCS)]))
107b64
[m4_divert(-1)])
107b64
_
107b64
m4_divert(6)_
107b64
m4_tab[mkdir -p $(DESTDIR)/$(LIBDIR)/$(PACKAGE)/./][$1]
107b64
m4_ifelse([$1],[],_
107b64
m4_tab[mkdir -p $(DESTDIR)/$(LIBDIR)/$(PACKAGE)/./][__pycache__],
107b64
m4_tab[mkdir -p $(DESTDIR)/$(LIBDIR)/$(PACKAGE)/./][$1][/./__pycache__])
107b64
m4_divert(-1)
107b64
_
107b64
m4_ifelse([$1],[],_
107b64
[m4_divert(7)]_
107b64
m4_tab[]_
107b64
m4_rightalign(79,[cp -p $(PYDIST_SRCS)])_
107b64
[$(DESTDIR)/$(LIBDIR)/$(PACKAGE)/./]
107b64
[m4_divert(-1)],
107b64
[$2],[1],_
107b64
[m4_divert(7)]_
107b64
m4_tab[]_
107b64
m4_rightalign(79,[cp -p $(PYDIST_]m4_pathvar([$1][_SRCS)]))_
107b64
[$(DESTDIR)/$(LIBDIR)/$(PACKAGE)/./][$1]
107b64
[m4_divert(-1)])
107b64
_
107b64
m4_ifelse([$1],[],_
107b64
[m4_divert(8)]_
107b64
m4_tab[cp -p $(PYDIST_SRCS][:$(PYDIST_PYCDIR)/./%.py=$(PYDIST_PYCDIR)/././__pycache__/%.$(PYCABI).pyc) \]
107b64
m4_tabtab[$(DESTDIR)/$(LIBDIR)/$(PACKAGE)/././__pycache__]
107b64
[m4_divert(-1)],
107b64
[$1],[lib2to3/tests/data],[],
107b64
[$1],[lib2to3/tests/data/fixers],[],
107b64
[$1],[lib2to3/tests/data/fixers/myfixes],[],
107b64
[$2],[1],_
107b64
[m4_divert(8)]_
107b64
m4_tab[cp -p $(PYDIST_]m4_pathvar([$1][_SRCS])[:$(PYDIST_PYCDIR)/./[$1]/%.py=$(PYDIST_PYCDIR)/./[$1]/./__pycache__/%.$(PYCABI).pyc) \]
107b64
m4_tabtab[$(DESTDIR)/$(LIBDIR)/$(PACKAGE)/./][$1][/./__pycache__]
107b64
[m4_divert(-1)])
107b64
])
107b64
107b64
107b64
m4_define([PYCSRC],[_
107b64
m4_divert(1)_
107b64
m4_srcitem($(PYDIST_PYCDIR)/./[$1])]_
107b64
m4_divert(-1))
107b64
_
107b64
_ </pysrcs>
107b64
_
107b64
107b64
107b64
_
107b64
_ <pydist.tag>
107b64
_
107b64
m4_divert(2)
107b64
pydist.tag:
107b64
m4_tab[mkdir -p $(PYDIST_PYCDIR)/./__pycache__]
107b64
m4_divert(-1)
107b64
_
107b64
m4_m4wrap([_
107b64
m4_divert(2)_
107b64
m4_tab[touch pydist.tag]
107b64
m4_divert(-1)_
107b64
])
107b64
_
107b64
_ </pydist.tag>
107b64
_
107b64
107b64
107b64
m4_divert(3)
107b64
m4_divert(4)
107b64
107b64
_
107b64
_ <pydist-install-tree>
107b64
_
107b64
m4_divert(6)
107b64
pydist-install-tree:
107b64
m4_divert(-1)
107b64
_
107b64
_ </pydist-install-tree>
107b64
_
107b64
107b64
107b64
_
107b64
_ <pydist-install-py>
107b64
_
107b64
m4_divert(7)
107b64
pydist-install-py: $(PYDIST_PY_SRCS)
107b64
pydist-install-py: pydist-install-tree
107b64
pydist-install-py:
107b64
m4_tab[]_
107b64
m4_rightalign([79],[cp -p $(PYDIST_SYSCFG_SRCS)])_
107b64
[$(DESTDIR)/$(LIBDIR)/$(PACKAGE)]
107b64
m4_divert(-1)
107b64
_
107b64
_ <pydist-install-py>
107b64
_
107b64
107b64
107b64
_
107b64
_ <pydist-install-pyc>
107b64
_
107b64
m4_divert(8)
107b64
pydist-install-pyc: $(PYCGEN_OBJS)
107b64
pydist-install-pyc: pydist-install-tree
107b64
pydist-install-pyc:
107b64
m4_tab[cp -p $(PYDIST_SYSCFG_SRCS:$(PYDIST_PYCDIR)/./%.py=$(PYDIST_PYCDIR)/./__pycache__/%.$(PYCABI).pyc) \]
107b64
m4_tabtab[$(DESTDIR)/$(LIBDIR)/$(PACKAGE)/./__pycache__]
107b64
m4_divert(-1)
107b64
_
107b64
_ <pydist-install-py>
107b64
_
107b64
107b64
107b64
m4_divert(-1)