pygments-main / Makefile

gbrandl 3a85889 

Georg Brandl 8c21b7c 
gbrandl 6cd72bd 
gbrandl 3a85889 

gbrandl 57a005d 
gbrandl 3a85889 
gbrandl 6cd72bd 
gbrandl ab82049 
gbrandl 3a85889 
gbrandl 91376d3 
gbrandl f4d3a79 
gbrandl 3a85889 
thatch 15fa79f 
Georg Brandl a82ff40 
gbrandl 51f2b9c 

gbrandl 3a85889 

Georg Brandl a82ff40 

gbrandl 3a85889 

gbrandl 387685e 
gbrandl 3a85889 

gbrandl 5e8758f 

gbrandl 3a85889 

gbrandl ad6b86c 
gbrandl ab82049 

# Makefile for Pygments
# ~~~~~~~~~~~~~~~~~~~~~
# Combines scripts for common tasks.
# :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS.
# :license: BSD, see LICENSE for details.

PYTHON ?= python

export PYTHONPATH = $(shell echo "$$PYTHONPATH"):$(shell python -c 'import os; print ":".join(os.path.abspath(line.strip()) for line in file("PYTHONPATH"))' 2>/dev/null)

.PHONY: all check clean clean-pyc codetags docs mapfiles \
	pylint reindent test test-coverage

all: clean-pyc check test

	@$(PYTHON) scripts/ || true
	@$(PYTHON) scripts/ -i build -i dist -i pygments/lexers/ \
		   -i docs/build -i pygments/formatters/ -i pygments/ \
		   -i pygments/lexers/

clean: clean-pyc
	-rm -rf build
	-rm -f codetags.html

	find . -name '*.pyc' -exec rm -f {} +
	find . -name '*.pyo' -exec rm -f {} +
	find . -name '*~' -exec rm -f {} +

	@$(PYTHON) scripts/ -i tests/examplefiles -i scripts/pylintrc \
		   -i scripts/ -o codetags.html .

docs: docs/build

docs/build: docs/src/*.txt
	$(PYTHON) docs/ html docs/build $?
	touch docs/build

	(cd pygments/lexers; $(PYTHON)
	(cd pygments/formatters; $(PYTHON)

	@pylint --rcfile scripts/pylintrc pygments

	@$(PYTHON) scripts/ -r -B .

	@$(PYTHON) tests/ $(TESTS)

	@$(PYTHON) tests/ -C $(TESTS)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.