forked from Enchufa2/video-tester
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (35 loc) · 929 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
32
33
34
35
36
37
38
39
40
41
42
# Makefile for VideoTester
#
DIST = dist
BUILD = build
DOC = doc
MAKEFILE = doc/sphinx/
BUILDDIR = doc/sphinx/_build
.PHONY: help clean doc sdist bdist_rpm
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " doc to make documentation"
@echo " sdist to make source distribution"
@echo " bdist_rpm to make RPM distribution"
@echo " clean to clean"
clean:
-rm -rf $(DIST) $(BUILD)
-find $(DOC) -maxdepth 1 -mindepth 1 ! -name 'sphinx' -exec rm -rf {} +
-rm -f MANIFEST
doc: clean
-make -C $(MAKEFILE) html
-cp -rf $(BUILDDIR)/* $(DOC)
-rm -rf $(DOC)/doctrees
-make -C $(MAKEFILE) clean
@echo
@echo "Doc rebuilt."
sdist: doc
-cp -rf VT.conf README.md LICENSE scripts $(DOC)
-python setup.py sdist
@echo
@echo "Build finished."
bdist_rpm: doc
-cp -rf VT.conf README.md LICENSE scripts $(DOC)
-python setup.py bdist_rpm
@echo
@echo "Build finished."