mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-30 23:24:16 +01:00
21 lines
536 B
Makefile
21 lines
536 B
Makefile
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
|