1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-23 19:55:38 +01:00
svtplay-dl/Makefile

21 lines
564 B
Makefile
Raw Normal View History

2013-03-23 15:43:05 +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: lib/svtplay_dl/*py lib/svtplay_dl/fetcher/*py lib/svtplay_dl/service/*py
zip --quiet svtplay-dl lib/svtplay_dl/*py lib/svtplay_dl/fetcher/*py lib/svtplay_dl/service/*py
zip --quiet --junk-paths svtplay-dl lib/svtplay_dl/__main__.py
echo '#!$(PYTHON)' > svtplay-dl
cat svtplay-dl.zip >> svtplay-dl
rm svtplay-dl.zip
chmod a+x svtplay-dl