2013-03-23 15:43:05 +01:00
|
|
|
all: svtplay-dl
|
|
|
|
|
2013-04-21 14:08:41 +02:00
|
|
|
.PHONY: test cover pylint svtplay-dl
|
2013-04-21 10:48:20 +02:00
|
|
|
|
2013-03-23 15:43:05 +01:00
|
|
|
clean:
|
|
|
|
rm -f svtplay-dl
|
|
|
|
|
2013-03-24 01:43:24 +01:00
|
|
|
PREFIX?=/usr/local
|
2013-03-23 15:43:05 +01:00
|
|
|
BINDIR=$(PREFIX)/bin
|
|
|
|
PYTHON=/usr/bin/env python
|
2013-04-21 11:26:43 +02:00
|
|
|
export PYTHONPATH=lib
|
2013-03-23 15:43:05 +01:00
|
|
|
|
|
|
|
install: svtplay-dl
|
|
|
|
install -d $(DESTDIR)$(BINDIR)
|
|
|
|
install -m 755 svtplay-dl $(DESTDIR)$(BINDIR)
|
|
|
|
|
2013-04-21 14:08:41 +02:00
|
|
|
svtplay-dl: $(PYFILES)
|
|
|
|
$(MAKE) -C lib
|
2013-03-23 16:30:19 +01:00
|
|
|
mv lib/svtplay-dl .
|
2013-03-23 17:07:36 +01:00
|
|
|
|
|
|
|
test:
|
|
|
|
sh run-tests.sh
|
2013-03-23 17:25:07 +01:00
|
|
|
|
2013-04-21 10:48:20 +02:00
|
|
|
cover:
|
|
|
|
sh run-tests.sh -C
|
|
|
|
|
2013-03-23 17:25:07 +01:00
|
|
|
pylint:
|
2013-04-21 13:44:51 +02:00
|
|
|
find lib -name '*.py' -a '!' -path '*/tests/*' | xargs pylint -d C -d R
|