Blame project/pydist.m4

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