Makefile 758 B

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