UDE

Building and installing
Login

Building and installing

Purpose: how to build, test and install UDE, what configure can turn off, and how to build this documentation.

Template, except "Documentation" below. Replace each TODO with prose; the README's "Build" section has the material.

TODO: The short version

TODO: configure options

TODO: Shared libraries, wrappers and pkg-config

TODO: Versions

TODO: Tests

Documentation

The documentation has two parts: the manual pages in docs/, written in mdoc, and these pages in www/, written in Fossil Markdown with pikchr diagrams.

Manual pages. make install installs the pages into $(mandir)/man1, man3, man5, man7 and man8 (mandir is PREFIX/share/man unless ./configure --mandir= says otherwise), each only if what it describes was built. On the way it puts docs/version.man in front of every page. That file is written by docs/mkversion from VERSION and Fossil's manifest and manifest.uuid, so an installed page carries the check-in's date and version:

.ds Md December 2, 2026
.ds Mv 0.2.0 (check-in e4ad216a8e)\&

and the pages say .Dd \*(Md and .Os "UDE \*(Mv". In a copy of the tree without the manifest files the date is that of SOURCE_DATE_EPOCH, or today's, and the version is VERSION alone. make uninstall removes the pages. To read a page from the source tree:

cat build/docs/version.man docs/udeswitch.8 | man -l -   # after make docs/version.man
mandoc -T lint docs/udeswitch.8                          # check a page

Web pages. fossil ui serves these pages at /doc/ckout/www/index.md (the checkout, including uncommitted edits) or /doc/trunk/www/index.md. For reading without Fossil's web server there are two optional targets; make and make test never need them:

make html     # www-html/: every page and manual page as static HTML
make pdf      # ude-docs.pdf: all of it as one document

make html (scripts/mkhtml.sh) renders every www/**/*.md with fossil test-markdown-render, the same renderer fossil ui uses, including pikchr. It wraps each page with a small style sheet that hides the pikchr source blocks, and rewrites the links so that they work from files: page.md becomes page.html, $ROOT/doc/CHECKIN/path a relative path, and ../docs/udectl.1 the HTML of that manual page, which mandoc renders if it is installed. The output goes to www-html/ in the build directory; open www-html/index.html. It needs fossil (set FOSSIL= for another binary); without mandoc the manual pages are left out.

make pdf (scripts/mkpdf.sh) joins the pages, in the order listed in www/book.txt, and the manual pages into one HTML document with links between its sections, and prints it to ude-docs.pdf with a headless Chrome or Chromium (google-chrome, chromium, chromium-browser, or CHROME=), or with WeasyPrint if no browser is found. Each tool that is missing is named in a message, and the target fails without touching anything else.

Vendored sources. extsrc/ holds third-party files kept unmodified. tomlc17 (a TOML parser, MIT License) is compiled as obj/extsrc/tomlc17.o with every make, using -Wall -Wextra but not -Werror and not the project's stricter warning flags. Nothing links the object yet, and it is not installed. make check-extsrc (a maintainer target, not part of make or make test) compiles the file with the project's full warning flags, including -Werror. The pin (tag R261116), the update procedure and the license notice are in extsrc/README and extsrc/LICENSE.tomlc17.