Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation target to build the docs
- Loading branch information
Showing
7 changed files
with
181 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,23 @@ | ||
.PHONY: generated_pdfs/dyOptInitialGuess.pdf | ||
.PHONY: generated_pdfs/dyOptInitialGuess.pdf generated_pdfs/cruntimedraft.pdf usersguide | ||
all: generated_pdfs/dyOptInitialGuess.pdf | ||
generated_pdfs/cruntimedraft.pdf: | ||
latexmk -outdir=generated_pdfs -lualatex SimulationRuntime/c/src/cruntimedraft.tex | ||
generated_pdfs/dyOptInitialGuess.pdf: | ||
latexmk -outdir=generated_pdfs -pdf SimulationRuntime/DynamicOptimization/src/dyOptInitialGuess.tex | ||
latexmk -outdir=generated_pdfs -lualatex SimulationRuntime/DynamicOptimization/src/dyOptInitialGuess.tex | ||
usersguide: | ||
$(MAKE) -C UsersGuide html | ||
@# OMPython sucks at cleaning up... | ||
@killall omc >/dev/null 2>&1 | ||
BUILDDIR=openmodelica-doc_$(BUILDDIR_VER) | ||
docs-internal: generated_pdfs/dyOptInitialGuess.pdf generated_pdfs/cruntimedraft.pdf usersguide | ||
@test ! -z "$(BUILDDIR_VER)" || (echo Call docs, not docs-internal directly; false) | ||
@test ! -z "$(BUILDDIR)" | ||
rm -rf ./$(BUILDDIR) | ||
mkdir -p ./$(BUILDDIR)/SystemDocumentation "./$(BUILDDIR)/OpenModelicaUsersGuide" | ||
cp generated_pdfs/cruntimedraft.pdf generated_pdfs/dyOptInitialGuess.pdf OpenModelicaMetaProgramming.pdf OpenModelicaSystem.pdf OpenModelicaTemplateProgramming.pdf "./$(BUILDDIR)/SystemDocumentation" | ||
cp ModelicaTutorialFritzson.pdf "./$(BUILDDIR)/" | ||
cp -a UsersGuide/build/html/* "./$(BUILDDIR)/OpenModelicaUsersGuide" | ||
tar cJf "$(BUILDDIR).orig.tar.xz" "./$(BUILDDIR)" | ||
docs: | ||
test -f ../common/semver.sh | ||
$(MAKE) docs-internal BUILDDIR_VER="`cd ../ && ./common/semver.sh | sed -e 's/-dev[.]/~dev-/' -e 's/^v//'`" |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.