Skip to content

Commit

Permalink
Add make target for doc generation (#1162)
Browse files Browse the repository at this point in the history
Signed-off-by: Hayden Blauzvern <hblauzvern@google.com>
  • Loading branch information
haydentherapper committed Dec 8, 2021
1 parent 79a843b commit 1510379
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Makefile
Expand Up @@ -162,3 +162,11 @@ help: # Display help

include release/release.mk
include test/ci.mk

##########################
# Documentation generation
##########################

.PHONY: docgen
docgen:
go run -tags pivkey,pkcs11key,cgo ./cmd/help/
2 changes: 1 addition & 1 deletion cmd/help/verify.sh
Expand Up @@ -20,6 +20,6 @@ set -e
tmpdir=$(mktemp -d)
go run -tags pivkey,pkcs11key,cgo cmd/help/main.go --dir "$tmpdir"
echo "###########################################"
echo "If diffs are found, run: go run -tags pivkey,pkcs11key,cgo ./cmd/help/"
echo "If diffs are found, run: make docgen"
echo "###########################################"
diff -Naur "$tmpdir" doc/

0 comments on commit 1510379

Please sign in to comment.