Sha256: 9da6ae05c3e2c7891362f5c37f4fd7cd79101dfeb868a69a49197f2c18829efd

Contents?: true

Size: 1.49 KB

Versions: 17

Compression:

Stored size: 1.49 KB

Contents

#
# Makefile for Pygments
# ~~~~~~~~~~~~~~~~~~~~~
#
# Combines scripts for common tasks.
#
# :copyright: Copyright 2006-2012 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

check:
	@$(PYTHON) scripts/detect_missing_analyse_text.py || true
	@$(PYTHON) scripts/check_sources.py -i build -i dist -i pygments/lexers/_mapping.py \
		   -i docs/build -i pygments/formatters/_mapping.py -i pygments/unistring.py \
		   -i pygments/lexers/_vimbuiltins.py

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

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

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

docs: docs/build

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

mapfiles:
	(cd pygments/lexers; $(PYTHON) _mapping.py)
	(cd pygments/formatters; $(PYTHON) _mapping.py)

pylint:
	@pylint --rcfile scripts/pylintrc pygments

reindent:
	@$(PYTHON) scripts/reindent.py -r -B .

test:
	@$(PYTHON) tests/run.py $(TESTS)

test-coverage:
	@$(PYTHON) tests/run.py -C $(TESTS)

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
gitlab-pygments.rb-0.3.2 vendor/pygments-main/Makefile
pygments.rb-0.3.7 vendor/pygments-main/Makefile
pygments.rb-0.3.6 vendor/pygments-main/Makefile
pygments.rb-0.3.5 vendor/pygments-main/Makefile
pygments.rb-0.3.4 vendor/pygments-main/Makefile
pygments.rb-0.3.3 vendor/pygments-main/Makefile
pygments.rb-0.3.2 vendor/pygments-main/Makefile
pygments.rb-0.3.1 vendor/pygments-main/Makefile
pygments.rb-0.3.0 vendor/pygments-main/Makefile
pygments.rb-0.2.13 vendor/pygments-main/Makefile
pygments.rb-0.2.12 vendor/pygments-main/Makefile
pygments.rb-0.2.11 vendor/pygments-main/Makefile
pygments.rb-0.2.10 vendor/pygments-main/Makefile
pygments.rb-0.2.9 vendor/pygments-main/Makefile
pygments.rb-0.2.8 vendor/pygments-main/Makefile
pygments.rb-0.2.7 vendor/pygments-main/Makefile
pygments.rb-0.2.6 vendor/pygments-main/Makefile