1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00
svtplay-dl/lib/Makefile

22 lines
540 B
Makefile
Raw Normal View History

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
export PACKAGES = svtplay_dl \
svtplay_dl.fetcher \
svtplay_dl.utils \
svtplay_dl.service
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
svtplay-dl: $(PYFILES)
zip --quiet svtplay-dl $(PYFILES)
2013-03-23 16:30:19 +01:00
zip --quiet --junk-paths svtplay-dl svtplay_dl/__main__.py
echo '#!$(PYTHON)' > svtplay-dl
cat svtplay-dl.zip >> svtplay-dl
rm svtplay-dl.zip
chmod a+x svtplay-dl