Repository navigation
Commit 298b404
build: Add DISABLE_DOCS to skip man pages
When bootc is built from source and its `make install` tree is copied
into a minimized image, the man pages end up in an image that excludes
documentation everywhere else: Fedora container images set
`tsflags=nodocs` for dnf, Ubuntu minimized images exclude
/usr/share/man for dpkg. A distro package goes through that filter, a
source build doesn't, so the Makefile is where that choice has to be
made.
Setting DISABLE_DOCS=1 skips generating and installing the man pages.
This also skips the extra docgen-featured build of bootc, and the
dependency on go-md2man. The name and check follow skopeo's Makefile,
which has the same switch. The default is unchanged, so packaging
isn't affected. Files under /usr/share/doc/bootc are still installed:
they're base image configuration, not documentation.
While there, add the missing section 7 to the man page directories
listed in the packaging docs.
Moving the man pages to a separate install target was considered and
discarded: the man pages have to be built before the binary, so that
the production build overwrites the docgen one in target/release (see
e747216, "cli: Fix rhsm feature propagation and manpage build order").
Assisted-by: AI
Signed-off-by: Franck Cuny <franck@fcuny.net>1 parent 6af0131 commit 298b404
2 files changed
Lines changed: 25 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
55 | 64 | | |
| 65 | + | |
| 66 | + | |
56 | 67 | | |
57 | 68 | | |
58 | 69 | | |
| |||
77 | 88 | | |
78 | 89 | | |
79 | 90 | | |
| 91 | + | |
80 | 92 | | |
81 | 93 | | |
82 | 94 | | |
| 95 | + | |
83 | 96 | | |
84 | 97 | | |
85 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
44 | 55 | | |
45 | 56 | | |
46 | 57 | | |
| |||
0 commit comments