File tree Expand file tree Collapse file tree 2 files changed +9
-21
lines changed Expand file tree Collapse file tree 2 files changed +9
-21
lines changed Original file line number Diff line number Diff line change 1
- RESET_COLOR =\033[0m
2
- GREEN_COLOR =\033[32;01m
3
1
4
- CONTAINER_NAME := ' splunk'
2
+ CONTAINER_NAME := " splunk"
5
3
6
4
.PHONY : docs
7
5
docs :
8
- @echo " $( GREEN_COLOR) ==> docs $( RESET_COLOR) "
9
- @rm -rf ./docs/_build
10
6
@make -C ./docs html
11
- @echo " $( GREEN_COLOR) ==> Docs pages can be found at docs/_build/html"
12
- @echo " $( GREEN_COLOR) ==> Docs bundle available at docs/_build/docs_html.zip"
13
7
14
8
.PHONY : test
15
9
test :
16
- @echo " $( GREEN_COLOR) ==> test $( RESET_COLOR) "
17
10
@python -m pytest ./tests
18
11
19
12
.PHONY : test-unit
20
13
test-unit :
21
- @echo " $( GREEN_COLOR) ==> test $( RESET_COLOR) "
22
14
@python -m pytest ./tests/unit
23
15
24
16
.PHONY : test-integration
25
17
test-integration :
26
- @echo " $( GREEN_COLOR) ==> test $( RESET_COLOR) "
27
18
@python -m pytest ./tests/integration ./tests/system
28
19
29
20
.PHONY : docker-up
30
21
docker-up :
31
- @echo " $( GREEN_COLOR) ==> up $( RESET_COLOR) "
32
22
@docker-compose up -d
33
23
34
24
.PHONY : docker-remove
35
25
docker-remove :
36
- @echo " $( GREEN_COLOR) ==> rm $( RESET_COLOR) "
37
26
@docker-compose rm -f -s
38
27
39
28
.PHONY : docker-ensure-up
40
29
docker-ensure-up :
41
- @echo " $( GREEN_COLOR) ==> wait-up $( RESET_COLOR) "
42
30
@for i in ` seq 0 180` ; do if docker exec -it $( CONTAINER_NAME) /sbin/checkstate.sh & > /dev/null; then break ; fi ; printf " \rWaiting for Splunk for %s seconds..." $$ i; sleep 1; done
43
31
44
32
.PHONY : docker-down
45
33
docker-down :
46
- @echo " $( GREEN_COLOR) ==> down $( RESET_COLOR) "
47
34
@docker-compose stop
48
35
49
36
.PHONY : docker-start
@@ -53,4 +40,4 @@ docker-start: docker-up docker-ensure-up
53
40
docker-restart : docker-down docker-start
54
41
55
42
.PHONY : docker-refresh
56
- docker-refresh : docker-remove docker-start
43
+ docker-refresh : docker-remove docker-start
Original file line number Diff line number Diff line change 2
2
#
3
3
4
4
# You can set these variables from the command line.
5
- SPHINXOPTS =
6
5
SPHINXBUILD = sphinx-build
7
- BUILDDIR = _build
6
+ BUILDDIR = ./_build
7
+ HTMLDIR = ${BUILDDIR}/html
8
8
9
9
# Internal variables.
10
- ALLSPHINXOPTS = -d $(BUILDDIR ) /doctrees $( SPHINXOPTS ) .
10
+ ALLSPHINXOPTS = -d $(BUILDDIR ) /doctrees .
11
11
12
12
.PHONY : html
13
13
html :
14
- $(SPHINXBUILD ) -b html $(ALLSPHINXOPTS ) $(BUILDDIR ) /html
15
- sh munge_links.sh $(BUILDDIR ) /html
14
+ @rm -rf $(BUILDDIR )
15
+ @$(SPHINXBUILD ) -b html $(ALLSPHINXOPTS ) $(HTMLDIR )
16
+ @sh munge_links.sh $(HTMLDIR )
16
17
@echo
17
- @echo " Build finished. The HTML pages are in $( BUILDDIR ) /html ."
18
+ @echo " Build finished. HTML pages available at docs/ $( HTMLDIR ) ."
You can’t perform that action at this time.
0 commit comments