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
./configure && make && make test && make install;--prefix,DESTDIR; out-of-tree builds (mkdir build && cd build && ../configure).- No
make dist: tarballs come from Fossil (fossil tarball,/tarball).
TODO: configure options
- The table from the README:
--lib-only,--disable-daemon,--disable-tools,--disable-ipv4,--disable-udp,--disable-tcp,--disable-dhcp,--disable-shared,--static,--disable-tap,--disable-vdeplug,--disable-werror,--host=,CC=.
TODO: Shared libraries, wrappers and pkg-config
- What each program links;
.libs/and the build-tree wrappers;ude,ude-ipv4,ude-udp,ude-tcp,ude-dhcpand their Requires.
TODO: Versions
VERSION, Fossil'smanifestandmanifest.uuid,ude_version.h,-V; the same files date the manual pages (below).
TODO: Tests
- Unit tests,
tests/run_tests.sh,tests/check_imports.sh(Windows),tests/manual_tap.sh(root, not inmake test).
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.