2013-03-23 15:43:05 +01:00
|
|
|
all: svtplay-dl
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
install: svtplay-dl
|
|
|
|
install -d $(DESTDIR)$(BINDIR)
|
|
|
|
install -m 755 svtplay-dl $(DESTDIR)$(BINDIR)
|
|
|
|
|
|
|
|
svtplay-dl: lib/svtplay_dl/*py lib/svtplay_dl/fetcher/*py lib/svtplay_dl/service/*py
|
2013-03-23 16:30:19 +01:00
|
|
|
cd lib; $(MAKE)
|
|
|
|
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
|
|
|
|
|
|
|
pylint:
|
|
|
|
find lib -name '*.py' -a '!' -path '*/tests/*' | xargs pylint
|