Project Integration

mdoc documents fit perfectly into a UNIX development environment. In general, this is defined by a group of source files that produce executables as compiled and linked by make, called a build system. Sources are usually version-controlled using cvs, called revision control.

In this section, I discuss methods for integrating mdoc documents into a source-controlled build environment. I'll focus on mandoc as a formatter, but provide stubs for using nroff.

Our examples will consider a project building a utility foo from its single source file foo.c.

Last edited by $Author: kristaps $ on $Date: 2011/11/04 01:06:28 $. Copyright © 2011, Kristaps Dzonsons. CC BY-SA.