Makefile 732 B

123456789101112131415161718192021222324252627282930313233
  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 = \
  7. -e 's:\$$(PAL):../pal_loader:g' \
  8. -e 's:\$$(PYTHONDIR):$(PYTHON_INSTALL)/:g'
  9. level = ../../
  10. include ../../Makefile
  11. $(PYTHON_INSTALL)/bin/python: $(PYTHON_SRC)/Makefile
  12. cd $(PYTHON_SRC) && $(MAKE)
  13. cd $(PYTHON_SRC) && $(MAKE) install
  14. $(PYTHON_SRC)/Makefile: $(PYTHON_SRC)/configure
  15. cd $(PYTHON_SRC) && \
  16. ./configure --prefix=$(shell readlink -f $(PYTHON_INSTALL))
  17. $(PYTHON_SRC)/configure: $(PYTHON_SRC).tgz
  18. tar -xzf $<
  19. benchmarks: benchmarks.tar.gz
  20. tar -xzf $<
  21. BENCHMARK = all,-rietveld,-spitfire,-tornado_http
  22. distclean: clean
  23. rm -rf $(PYTHON_SRC) benchmarks