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
31
4- CONTAINER_NAME := ' splunk'
2+ CONTAINER_NAME := " splunk"
53
64.PHONY : docs
75docs :
8- @echo " $( GREEN_COLOR) ==> docs $( RESET_COLOR) "
9- @rm -rf ./docs/_build
106 @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"
137
148.PHONY : test
159test :
16- @echo " $( GREEN_COLOR) ==> test $( RESET_COLOR) "
1710 @python -m pytest ./tests
1811
1912.PHONY : test-unit
2013test-unit :
21- @echo " $( GREEN_COLOR) ==> test $( RESET_COLOR) "
2214 @python -m pytest ./tests/unit
2315
2416.PHONY : test-integration
2517test-integration :
26- @echo " $( GREEN_COLOR) ==> test $( RESET_COLOR) "
2718 @python -m pytest ./tests/integration ./tests/system
2819
2920.PHONY : docker-up
3021docker-up :
31- @echo " $( GREEN_COLOR) ==> up $( RESET_COLOR) "
3222 @docker-compose up -d
3323
3424.PHONY : docker-remove
3525docker-remove :
36- @echo " $( GREEN_COLOR) ==> rm $( RESET_COLOR) "
3726 @docker-compose rm -f -s
3827
3928.PHONY : docker-ensure-up
4029docker-ensure-up :
41- @echo " $( GREEN_COLOR) ==> wait-up $( RESET_COLOR) "
4230 @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
4331
4432.PHONY : docker-down
4533docker-down :
46- @echo " $( GREEN_COLOR) ==> down $( RESET_COLOR) "
4734 @docker-compose stop
4835
4936.PHONY : docker-start
@@ -53,4 +40,4 @@ docker-start: docker-up docker-ensure-up
5340docker-restart : docker-down docker-start
5441
5542.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 22#
33
44# You can set these variables from the command line.
5- SPHINXOPTS =
65SPHINXBUILD = sphinx-build
7- BUILDDIR = _build
6+ BUILDDIR = ./_build
7+ HTMLDIR = ${BUILDDIR}/html
88
99# Internal variables.
10- ALLSPHINXOPTS = -d $(BUILDDIR ) /doctrees $( SPHINXOPTS ) .
10+ ALLSPHINXOPTS = -d $(BUILDDIR ) /doctrees .
1111
1212.PHONY : html
1313html :
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 )
1617 @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