summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMing Liu <ming.liu@toradex.com>2020-05-08 14:22:19 +0200
committerMing Liu <ming.liu@toradex.com>2020-05-08 14:57:58 +0200
commitf339587185be2b1457b58e9e4c9fa186c4230608 (patch)
tree95ef55be4482296e13a369af924592b0ae830b22 /Makefile
parentff1c59065e9d2ef0c03ce8de444b489630d00b3c (diff)
downloadpodman-f339587185be2b1457b58e9e4c9fa186c4230608.tar.gz
podman-f339587185be2b1457b58e9e4c9fa186c4230608.tar.bz2
podman-f339587185be2b1457b58e9e4c9fa186c4230608.zip
Makefile: fix a dependency issue
Instead of being depended by docs, targets '.install.md2man' and 'docdir' should be depended by 'MANPAGES', or else the path 'docs/build/man' or 'GOMD2MAN' might not exist when it tries to generate files in it. This fixes a following build error: | open docs/build/man/podman-volume-ls.1: no such file or directory | Makefile:377: recipe for target 'docs/source/markdown/podman-volume-ls.1' failed | make: *** [docs/source/markdown/podman-volume-ls.1] Error 1 | make: *** Waiting for unfinished jobs.... | open docs/build/man/podman-init.1: no such file or directory | Makefile:377: recipe for target 'docs/source/markdown/podman-init.1' failed Signed-off-by: Ming Liu <ming.liu@toradex.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index bce0f33a1..e91ba6b2c 100644
--- a/Makefile
+++ b/Makefile
@@ -373,7 +373,7 @@ MANPAGES_MD ?= $(wildcard docs/source/markdown/*.md pkg/*/docs/*.md)
MANPAGES ?= $(MANPAGES_MD:%.md=%)
MANPAGES_DEST ?= $(subst markdown,man, $(subst source,build,$(MANPAGES)))
-$(MANPAGES): %: %.md .gopathok
+$(MANPAGES): %: %.md .install.md2man docdir
@sed -e 's/\((podman.*\.md)\)//' -e 's/\[\(podman.*\)\]/\1/' $< | $(GOMD2MAN) -in /dev/stdin -out $(subst source/markdown,build/man,$@)
.PHONY: docs
@@ -381,7 +381,7 @@ docdir:
mkdir -p docs/build/man
.PHONY: docs
-docs: .install.md2man docdir $(MANPAGES) ## Generate documentation
+docs: $(MANPAGES) ## Generate documentation
.PHONE: xref_helpmsgs_manpages
xref_helpmsgs_manpages: