1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-23 19:55:38 +01:00
svtplay-dl/Makefile
Olof Johansson 23ed1b840b Restructure makefiles
This change makes it easier to add new packages; it's only necessary
to update the sub makefile (lib/Makefile) and add new packaes to the
PACKAGES variable.
2013-04-21 14:10:30 +02:00

29 lines
465 B
Makefile

all: svtplay-dl
.PHONY: test cover pylint svtplay-dl
clean:
rm -f svtplay-dl
PREFIX?=/usr/local
BINDIR=$(PREFIX)/bin
PYTHON=/usr/bin/env python
export PYTHONPATH=lib
install: svtplay-dl
install -d $(DESTDIR)$(BINDIR)
install -m 755 svtplay-dl $(DESTDIR)$(BINDIR)
svtplay-dl: $(PYFILES)
$(MAKE) -C lib
mv lib/svtplay-dl .
test:
sh run-tests.sh
cover:
sh run-tests.sh -C
pylint:
find lib -name '*.py' -a '!' -path '*/tests/*' | xargs pylint -d C -d R