|
|
c7965a |
PYTOOL_2TO3 = 2to3
|
|
|
c7965a |
PYTOOL_IDLE = idle3
|
|
|
c7965a |
PYTOOL_PYDOC = pydoc3
|
|
|
c7965a |
PYTOOL_SRCDIR = tools
|
|
|
c7965a |
PYTOOL_DSTDIR = $(DESTDIR)/$(BINDIR)
|
|
|
c7965a |
|
|
|
c7965a |
$(PYTOOL_SRCDIR)/%: $(SOURCE_DIR)/Tools/scripts/% tree.tag
|
|
|
c7965a |
PYCOPY_PYTHON=$(PYCOPY_PYTHON) \
|
|
|
c7965a |
PYCOPY_PREFIX=$(PYCOPY_PREFIX) \
|
|
|
c7965a |
PYCOPY_DSTDIR=$(PYTOOL_SRCDIR) \
|
|
|
c7965a |
$(PYCOPY) $<
|
|
|
c7965a |
|
|
|
c7965a |
PYTOOLS = \
|
|
|
c7965a |
$(PYTOOL_SRCDIR)/$(PYTOOL_2TO3) \
|
|
|
c7965a |
$(PYTOOL_SRCDIR)/$(PYTOOL_IDLE) \
|
|
|
c7965a |
$(PYTOOL_SRCDIR)/$(PYTOOL_PYDOC)
|
|
|
c7965a |
|
|
|
c7965a |
pytools: $(PYTOOLS)
|
|
|
c7965a |
|
|
|
c7965a |
pytools-clean:
|
|
|
c7965a |
rm -f $(PYTOOLS)
|
|
|
c7965a |
|
|
|
c7965a |
pytools-install:$(PYTOOLS)
|
|
|
c7965a |
mkdir -p $(PYTOOL_DSTDIR)
|
|
|
c7965a |
|
|
|
c7965a |
cp -p $(PYTOOL_SRCDIR)/$(PYTOOL_2TO3) $(PYTOOL_DSTDIR)/$(PYTOOL_2TO3)-$(PYTHON_VER)
|
|
|
c7965a |
cp -p $(PYTOOL_SRCDIR)/$(PYTOOL_IDLE) $(PYTOOL_DSTDIR)/$(PYTOOL_IDLE)$(PYTHON_VER)
|
|
|
c7965a |
cp -p $(PYTOOL_SRCDIR)/$(PYTOOL_PYDOC) $(PYTOOL_DSTDIR)/$(PYTOOL_PYDOC)$(PYTHON_VER)
|
|
|
c7965a |
|
|
|
c7965a |
ln -s $(PYTOOL_2TO3)-$(PYTHON_VER) $(PYTOOL_DSTDIR)/$(PYTOOL_2TO3)-$(PYTHON_MAJOR).tmp
|
|
|
c7965a |
ln -s $(PYTOOL_IDLE)$(PYTHON_VER) $(PYTOOL_DSTDIR)/$(PYTOOL_IDLE)$(PYTHON_MAJOR).tmp
|
|
|
c7965a |
ln -s $(PYTOOL_PYDOC)$(PYTHON_VER) $(PYTOOL_DSTDIR)/$(PYTOOL_PYDOC)$(PYTHON_MAJOR).tmp
|
|
|
c7965a |
|
|
|
c7965a |
mv $(PYTOOL_DSTDIR)/$(PYTOOL_2TO3)-$(PYTHON_MAJOR).tmp $(PYTOOL_DSTDIR)/$(PYTOOL_2TO3)-$(PYTHON_MAJOR)
|
|
|
c7965a |
mv $(PYTOOL_DSTDIR)/$(PYTOOL_IDLE)$(PYTHON_MAJOR).tmp $(PYTOOL_DSTDIR)/$(PYTOOL_IDLE)$(PYTHON_MAJOR)
|
|
|
c7965a |
mv $(PYTOOL_DSTDIR)/$(PYTOOL_PYDOC)$(PYTHON_MAJOR).tmp $(PYTOOL_DSTDIR)/$(PYTOOL_PYDOC)$(PYTHON_MAJOR)
|
|
|
c7965a |
|
|
|
c7965a |
all: pytools
|
|
|
c7965a |
|
|
|
c7965a |
install: pytools-install
|
|
|
c7965a |
|
|
|
c7965a |
clean: pytools-clean
|
|
|
c7965a |
|
|
|
c7965a |
.PHONY: pytools pytools-install
|