Makefile 694 B

12345678910111213141516171819202122232425262728293031
  1. PYTHON_SRC = Python-2.7.9
  2. PYTHON_INSTALL = $(PYTHON_SRC)/build
  3. manifests = python.manifest
  4. target = benchmarks
  5. exec_target = $(manifests)
  6. extra_rules = -e 's:\$$(PYTHONDIR):$(PYTHON_INSTALL)/:g'
  7. level = ../../
  8. include ../../Makefile
  9. $(PYTHON_INSTALL)/bin/python: $(PYTHON_SRC)/Makefile
  10. cd $(PYTHON_SRC) && $(MAKE)
  11. cd $(PYTHON_SRC) && $(MAKE) install
  12. $(PYTHON_SRC)/Makefile: $(PYTHON_SRC)/configure
  13. cd $(PYTHON_SRC) && \
  14. ./configure --prefix=$(shell readlink -f $(PYTHON_INSTALL))
  15. $(PYTHON_SRC)/configure: $(PYTHON_SRC).tgz
  16. tar -xzf $<
  17. benchmarks: benchmarks.tar.gz
  18. tar -xzf $<
  19. BENCHMARK = all,-rietveld,-spitfire,-tornado_http
  20. distclean: clean
  21. rm -rf $(PYTHON_SRC) benchmarks