1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-12-03 00:24:21 +01:00
svtplay-dl/lib/Makefile

21 lines
536 B
Makefile
Raw Normal View History

2013-03-23 16:30:19 +01:00
all: svtplay-dl
clean:
rm -f svtplay-dl
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
PYTHON=/usr/bin/env python
install: svtplay-dl
install -d $(DESTDIR)$(BINDIR)
install -m 755 svtplay-dl $(DESTDIR)$(BINDIR)
svtplay-dl: svtplay_dl/*py svtplay_dl/fetcher/*py svtplay_dl/service/*py
zip --quiet svtplay-dl svtplay_dl/*py svtplay_dl/fetcher/*py svtplay_dl/service/*py
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