[LNT] r317745 - docs/Makefile: Change html target back to not copying the files around

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 8 16:27:10 PST 2017


Author: matze
Date: Wed Nov  8 16:27:10 2017
New Revision: 317745

URL: http://llvm.org/viewvc/llvm-project?rev=317745&view=rev
Log:
docs/Makefile: Change html target back to not copying the files around

Not everyone builds the docs into the source directory or wants to
update the copy in server/ui/static. This changes `make html` back to
only create the documentation files as it was before r255982. Instead
add a new target "copydocs" which copies the files after building them;
make 'copydocs' the default target.

Modified:
    lnt/trunk/docs/Makefile

Modified: lnt/trunk/docs/Makefile
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/docs/Makefile?rev=317745&r1=317744&r2=317745&view=diff
==============================================================================
--- lnt/trunk/docs/Makefile (original)
+++ lnt/trunk/docs/Makefile Wed Nov  8 16:27:10 2017
@@ -14,7 +14,7 @@ ALLSPHINXOPTS   = -d $(BUILDDIR)/doctree
 
 .PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp epub latex changes linkcheck doctest
 
-all:	html
+all:	copydocs
 
 help:
 	@echo "Please use \`make <target>' where <target> is one of"
@@ -36,9 +36,12 @@ help:
 clean:
 	-rm -rf $(BUILDDIR)/*
 
+.PHONY: copydocs
+copydocs: html
+	cp -av $(BUILDDIR)/html/* $(BUILDDIR)/../../lnt/server/ui/static/docs/
+
 html:
 	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
-	cp -av $(BUILDDIR)/html/* $(BUILDDIR)/../../lnt/server/ui/static/docs/
 	@echo
 	@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
 




More information about the llvm-commits mailing list