| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- manifests = python.manifest python-local.manifest
- all debug: $(manifests) benchmarks
- PYTHON_SRC = Python-2.7.9
- PYTHON_INSTALL = $(PYTHON_SRC)/build
- local: python-local
- python-local: $(PYTHON_INSTALL)/bin/python
- cp -f $< $@
- $(PYTHON_INSTALL)/bin/python: $(PYTHON_SRC)/Makefile
- cd $(PYTHON_SRC) && $(MAKE)
- cd $(PYTHON_SRC) && $(MAKE) install
- $(PYTHON_SRC)/Makefile: $(PYTHON_SRC)/configure
- cd $(PYTHON_SRC) && \
- ./configure --prefix=$(shell readlink -f $(PYTHON_INSTALL))
- $(PYTHON_SRC)/configure: $(PYTHON_SRC).tgz
- tar -xzf $<
- test_targets = testsamplebash
- test: all $(test_targets)
- python.manifest: python.manifest.template
- $(MAKE) -C .. python/$@ appdir=python/
- python-local.manifest: python-local.manifest.template
- $(MAKE) -C .. python/$@ appdir=python/ \
- extra_rules="-e 's:\\\$$\$$(PYTHONDIR):$(shell readlink -f $(PYTHON_INSTALL)):g'"
- benchmarks: benchmarks.tar.gz
- tar -xzf $<
- BENCHMARK = all,-rietveld,-spitfire,-tornado_http
- test-graphene: benchmarks
- cd benchmarks && ./perf.py -b $(BENCHMARK) --csv ../results.csv /usr/bin/python $(PWD)/python.manifest
- distclean: clean
- rm -rf $(PYTHON_SRC) python-local benchmarks
- clean: clean-manifests
- clean-manifests:
- rm -rf $(manifests)
|