Skip to content

Commit

Permalink
Add documentation target to build the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed Jun 25, 2015
1 parent 4a4e34f commit bebfe99
Show file tree
Hide file tree
Showing 7 changed files with 181 additions and 159 deletions.
23 changes: 21 additions & 2 deletions Makefile
@@ -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 removed MediaAndFluid/MediaAndFluid.pptx
Binary file not shown.
Binary file removed SimulationRuntime/c/draft.pdf
Binary file not shown.

0 comments on commit bebfe99

Please sign in to comment.