From d2c7a013de0762f84b7bedf97d3b54a08bf06590 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 17 Jun 2018 14:17:46 -0700 Subject: [PATCH] just some more simple Makefile targets --- Makefile | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 94672a2..52708cd 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,25 @@ # Minimal makefile for Sphinx documentation # +all: + @echo 'make deps # will install the dependancies (sphinx)' + @echo 'make html # will push the html files to the webserver' + @echo 'make build # will build the html docs' + +deps: + apt install sphinx-common + +build: + make html + rsync -Pir _build/html/* r:/var/www/html/usw2/ + +# simple & standard git push +push: + git pull + git add --all + -git commit -a + git push + # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build @@ -17,4 +36,4 @@ help: # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). %: Makefile - @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) \ No newline at end of file + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)