forked from gavinbeatty/mkvtomp4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (26 loc) · 820 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
RM = rm -f
PANDOC = pandoc
default: doc
.PHONY: default
PROJECT = mkvtomp4
doc: doc/$(PROJECT).1 doc/$(PROJECT).1.html doc/$(PROJECT).txt
.PHONY: doc
doc/$(PROJECT).1: doc/$(PROJECT).1.txt
$(PANDOC) -s -w man -o doc/$(PROJECT).1 doc/$(PROJECT).1.txt
doc/$(PROJECT).1.html: doc/$(PROJECT).1.txt
$(PANDOC) -s -w html -o doc/$(PROJECT).1.html doc/$(PROJECT).1.txt
doc/$(PROJECT).txt: doc/$(PROJECT).1.txt
$(PANDOC) -s -w plain -o doc/$(PROJECT).txt doc/$(PROJECT).1.txt
clean-doc:
$(RM) doc/$(PROJECT).1 doc/$(PROJECT).1.html doc/$(PROJECT).txt
.PHONY: clean-doc
clean-pyc:
find . -name '*.pyc' -print0 | xargs -0 rm -f
.PHONY: clean-pyc
clean: clean-doc clean-pyc
.PHONY: clean
pep8:
@find . -name '*.py' -print0 | xargs -0 pep8
pyflakes:
@find . -name '*.py' -print0 | xargs -0 pyflakes
.PHONY: pep8 pyflakes