2014-12-26 02:11:19 +01:00
|
|
|
PYLINT_OPTS = --report=no -d I -d C -d R -d W0511
|
|
|
|
|
2013-03-23 16:30:19 +01:00
|
|
|
all: svtplay-dl
|
|
|
|
|
|
|
|
clean:
|
2013-08-10 20:50:52 +02:00
|
|
|
find . -name '*.pyc' -exec rm {} \;
|
2013-03-23 16:30:19 +01:00
|
|
|
rm -f svtplay-dl
|
|
|
|
|
2014-12-26 02:11:19 +01:00
|
|
|
pylint:
|
|
|
|
pylint $(PYLINT_OPTS) svtplay_dl
|
|
|
|
|
2013-04-21 14:08:41 +02:00
|
|
|
export PACKAGES = svtplay_dl \
|
|
|
|
svtplay_dl.fetcher \
|
|
|
|
svtplay_dl.utils \
|
2014-06-14 14:38:21 +02:00
|
|
|
svtplay_dl.service \
|
|
|
|
svtplay_dl.subtitle
|
2013-04-21 14:08:41 +02:00
|
|
|
export PYFILES = $(addsuffix /*.py,$(subst .,/,$(PACKAGES)))
|
|
|
|
|
2014-02-02 15:10:17 +01:00
|
|
|
PYTHON ?= /usr/bin/env python
|
2013-03-23 16:30:19 +01:00
|
|
|
|
2013-04-21 14:08:41 +02:00
|
|
|
svtplay-dl: $(PYFILES)
|
2015-02-13 23:27:54 +01:00
|
|
|
zip -X --quiet svtplay-dl $(PYFILES)
|
|
|
|
zip -X --quiet --junk-paths svtplay-dl svtplay_dl/__main__.py
|
2013-03-23 16:30:19 +01:00
|
|
|
echo '#!$(PYTHON)' > svtplay-dl
|
|
|
|
cat svtplay-dl.zip >> svtplay-dl
|
|
|
|
rm svtplay-dl.zip
|
|
|
|
chmod a+x svtplay-dl
|