Skip to content

Commit

Permalink
fix make docs
Browse files Browse the repository at this point in the history
Regression caused by 011f899. We only want to build actual man
pages of course and not general docs.
This commit fixes the wildcard target to only use the `.1.md` files
instead of all markdown files.
Also add the step to the validate target to make sure CI tests this
target.

Fixes containers#524

Signed-off-by: Paul Holzinger <[email protected]>
  • Loading branch information
Luap99 committed Dec 14, 2022
1 parent 62d7751 commit 97e90a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ integration: $(CARGO_TARGET_DIR)
validate: $(CARGO_TARGET_DIR)
cargo fmt --all -- --check
cargo clippy -p netavark -- -D warnings
$(MAKE) docs

.PHONY: vendor-tarball
vendor-tarball: build install.cargo-vendor-filterer
Expand Down
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ DATADIR ?= ${PREFIX}/share
MANDIR ?= $(DATADIR)/man
MANDOWN ?= $(shell export PATH; command -v mandown)

docs: $(patsubst %.md,%,$(wildcard *.md))
docs: $(patsubst %.md,%,$(wildcard *.1.md))

%.1: %.1.md
$(MANDOWN) $< > $@
Expand Down

0 comments on commit 97e90a3

Please sign in to comment.