X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=doc%2Fmanual%2FMakefile;h=328242e3331a2d4e5333ff33ad21fa8ae897076b;hp=06abad3ad3bf8303e0a6cdcbb353fa4939252c20;hb=2fb0437e57a85edb7324e322e81a21527974c693;hpb=8b64fbdc8a0d60da1c7d6d01e1876e225564e478 diff --git a/doc/manual/Makefile b/doc/manual/Makefile index 06abad3ad..328242e33 100644 --- a/doc/manual/Makefile +++ b/doc/manual/Makefile @@ -1,27 +1,28 @@ -# DVD-o-matic manual makefile +# DCP-o-matic manual makefile all: html pdf -DIAGRAMS := +DIAGRAMS := file-structure.svg 3d-left-right.svg 3d-top-bottom.svg timecode.svg pipeline1.svg pipeline2.svg \ + pipeline3.svg pipeline4.svg burn-in.svg discrete.svg dcp-copy.svg dcp-refer.svg reels-by-video.svg \ + crypt.svg -SCREENSHOTS := file-new.png video-new-film.png still-new-film.png click-content-selector.png video-select-content-file.png \ - still-select-content-file.png examine-thumbs.png range.png \ - calculate-audio-gain.png prefs.png making-dcp.png filters.png film-tab.png video-tab.png audio-tab.png subtitles-tab.png +SCREENSHOTS := file-new.png video-new-film.png still-new-film.png video-select-content-file.png \ + still-select-content-file.png examine-thumbs.png examine-content.png timing-tab.png \ + calculate-audio-gain.png add-file.png dcp-tab.png colour-conversion.png \ + prefs-kdm-email.png prefs-general.png prefs-tms.png \ + prefs-advanced.png prefs-defaults.png prefs-servers.png prefs-keys.png \ + making-dcp.png filters.png video-tab.png audio-tab.png timing-tab.png \ + audio-plot.png audio-map-eg1.png audio-map-eg2.png audio-map-eg3.png kdm.png \ + kdm-creator.png export.png -XML := dvdomatic.xml - -GRAPHICS := +XML := dcpomatic.xml # -# For the HTML, default to copying the screenshots direct +# For the HTML: copy screenshots into html/screenshots, scaling some. # html/screenshots/%.png: screenshots/%.png mkdir -p html/screenshots cp $< $@ - -# -# Some need resizing... -# html/screenshots/editor.png: screenshots/editor.png mkdir -p html/screenshots convert -resize 50% $< $@ @@ -49,14 +50,12 @@ html/screenshots/new-session.png: screenshots/new-session.png html/screenshots/export-dialogue.png: screenshots/export-dialogue.png mkdir -p html/screenshots convert -resize 75% $< $@ - -# For HTML: convert graphics from SVG to PNG -graphics/%.png: graphics/%.svg - inkscape -z -f $< --export-png $@ --export-area-drawing - -# For LaTeX/PDF: convert graphics from SVG to PDF -graphics/%.pdf: graphics/%.svg - inkscape -z -f $< --export-pdf $@ --export-area-drawing +html/screenshots/making-dcp.png: screenshots/making-dcp.png + mkdir -p html/screenshots + convert -resize 75% $< $@ +html/screenshots/kdm-creator.png: screenshots/kdm-creator.png + mkdir -p html/screenshots + convert -resize 75% $< $@ # For HTML: convert diagrams from SVG to PNG diagrams/%.png: diagrams/%.svg @@ -66,33 +65,36 @@ diagrams/%.png: diagrams/%.svg diagrams/%.pdf: diagrams/%.svg inkscape -z -f $< --export-pdf $@ --export-area-drawing +config.xml: ../../src/lib/config.cc config.py + python3 config.py ../../src/lib/config.cc > config.xml + # # HTML # -html: $(XML) dvdomatic-html.xsl extensions-html.ent dvdomatic.css \ +html: $(XML) config.xml dcpomatic-html.xsl extensions-html.ent dcpomatic.css dcpomatic_create.xml dcpomatic_cli.xml dcpomatic_kdm_cli.xml \ $(addprefix html/screenshots/,$(SCREENSHOTS)) \ $(subst .svg,.png,$(addprefix diagrams/,$(DIAGRAMS))) \ - $(subst .svg,.png,$(addprefix graphics/,$(GRAPHICS))) \ # The DocBook needs to know what file extensions to look for # for screenshots and diagrams; use the correct file to tell it. cp extensions-html.ent extensions.ent # DocBoox -> html - xmlto html -m dvdomatic-html.xsl dvdomatic.xml --skip-validation -o html + xmlto html -m dcpomatic-html.xsl dcpomatic.xml --skip-validation -o html # Copy graphics and CSS in -# mkdir -p html/diagrams html/graphics -# cp diagrams/*.png html/diagrams -# cp graphics/*.png html/graphics - cp dvdomatic.css html + mkdir -p html/diagrams + cp diagrams/*.png html/diagrams + cp dcpomatic.css html # # PDF # -pdf: $(XML) dvdomatic-pdf.xsl extensions-pdf.ent screenshots/*.png $(subst .svg,.pdf,$(addprefix diagrams/,$(DIAGRAMS))) +pdf: $(XML) config.xml dcpomatic-pdf.xsl extensions-pdf.ent dcpomatic_create.xml dcpomatic_cli.xml dcpomatic_kdm_cli.xml \ + $(addprefix screenshots/,$(SCREENSHOTS)) \ + $(subst .svg,.pdf,$(addprefix diagrams/,$(DIAGRAMS))) # The DocBook needs to know what file extensions to look for # for screenshots and diagrams; use the correct file to tell it. @@ -100,14 +102,14 @@ pdf: $(XML) dvdomatic-pdf.xsl extensions-pdf.ent screenshots/*.png $(subst .svg, mkdir -p pdf - dblatex -p dvdomatic-pdf.xsl -s dvdomatic.sty -r pptex.py -T native dvdomatic.xml -t pdf -o pdf/dvdomatic.pdf + dblatex -p dcpomatic-pdf.xsl -s dcpomatic.sty -r pptex.py -T native dcpomatic.xml -t pdf -o pdf/dcpomatic.pdf # # LaTeX (handy for debugging) # -tex: $(XML) dvdomatic-pdf.xsl extensions-pdf.ent +tex: $(XML) config.xml dcpomatic-pdf.xsl extensions-pdf.ent # The DocBook needs to know what file extensions to look for # for screenshots and diagrams; use the correct file to tell it. @@ -116,8 +118,8 @@ tex: $(XML) dvdomatic-pdf.xsl extensions-pdf.ent mkdir -p tex # -P removes the revhistory table - dblatex -P doc.collab.show=0 -P latex.output.revhistory=0 -p dvdomatic-pdf.xsl -s dvdomatic.sty -r pptex.py -T native dvdomatic.xml -t tex -o tex/dvdomatic.tex + dblatex -P doc.collab.show=0 -P latex.output.revhistory=0 -p dcpomatic-pdf.xsl -s dcpomatic.sty -r pptex.py -T native dcpomatic.xml -t tex -o tex/dcpomatic.tex -clean:; rm -rf html pdf diagrams/*.pdf diagrams/*.png graphics/*.png *.aux dvdomatic.cb dvdomatic.cb2 dvdomatic.glo dvdomatic.idx dvdomatic.ilg - rm -rf dvdomatic.ind dvdomatic.lof dvdomatic.log dvdomatic.tex dvdomatic.toc extensions.ent dvdomatic.out +clean:; rm -rf html pdf diagrams/*.pdf diagrams/*.png graphics/*.png *.aux dcpomatic.cb dcpomatic.cb2 dcpomatic.glo dcpomatic.idx dcpomatic.ilg + rm -rf dcpomatic.ind dcpomatic.lof dcpomatic.log dcpomatic.tex dcpomatic.toc extensions.ent dcpomatic.out