-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
42 lines (34 loc) · 934 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
.PHONY: default-target
default-target: build
###############################################################################
### User-settable variables
# Commands to run in the build process.
PYTHON = python
SPHINX_BUILD = sphinx-build
SPHINX_FLAGS =
# Options for above commands.
SPHINXOPTS =
PYTHONOPTS =
SETUPPYOPTS =
###############################################################################
### Targets
# build: Build trcrpm python package.
.PHONY: build
build: setup.py
$(PYTHON) $(PYTHONOPTS) setup.py $(SETUPPYOPTS) build
# doc: Build the trcrpm documentation.
.PHONY: doc
doc: pythenv.sh build
rm -rf build/doc.tmp && \
./pythenv.sh $(SPHINX_BUILD) $(SPHINX_FLAGS) \
-b html doc/ build/doc.tmp && \
rm -rf build/doc && \
mv -f build/doc.tmp build/doc
# check: (Build trcrpm and) run the tests.
.PHONY: check
check: check.sh
./check.sh
# clean: Remove build products.
.PHONY: clean
clean:
-rm -rf build