Skip to content

Commit

Permalink
Make 'docs' target not depend on 'install.tools' if GOMD2MAN is set
Browse files Browse the repository at this point in the history
If the GOMD2MAN (environment) variable is set, then we do not need the
'docs' target to depend on 'install.tools', which will build
gomd2man.

This avoids gomd2man to be build, even though the user already request
the usage of a particular gomd2man binary. It also removes an implicit
build dependency on go. The latter causes downstream bugs like
https://bugs.gentoo.org/931645

Signed-off-by: Florian Schmaus <[email protected]>
  • Loading branch information
Flowdalic committed May 9, 2024
1 parent 10f7826 commit ff8794c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ vendor:
GO111MODULE=on $(GO) mod verify

.PHONY: docs
ifeq ($(GOMD2MAN),)
docs: install.tools
endif
docs:
$(MAKE) -C docs

.PHONY: clean
Expand Down

0 comments on commit ff8794c

Please sign in to comment.