1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00
svtplay-dl/Makefile
2013-04-27 13:51:23 +02:00

32 lines
554 B
Makefile

all: svtplay-dl
.PHONY: test cover pylint svtplay-dl
clean:
rm -f svtplay-dl
PREFIX?=/usr/local
BINDIR=$(PREFIX)/bin
PYTHON=/usr/bin/env python
export PYTHONPATH=lib
# Disable convention, refactor, and TODO warnings
PYLINT_OPTS = -d C -d R -d W0511
install: svtplay-dl
install -d $(DESTDIR)$(BINDIR)
install -m 755 svtplay-dl $(DESTDIR)$(BINDIR)
svtplay-dl: $(PYFILES)
$(MAKE) -C lib
mv lib/svtplay-dl .
test:
sh run-tests.sh
cover:
sh run-tests.sh -C
pylint:
find lib -name '*.py' -a '!' -path '*/tests/*' | xargs pylint $(PYLINT_OPTS)