diff --git a/Makefile b/Makefile index 2151f85f..96fe736c 100644 --- a/Makefile +++ b/Makefile @@ -157,7 +157,9 @@ bin/skopeo.%: local-cross: bin/skopeo.darwin.amd64 bin/skopeo.linux.arm bin/skopeo.linux.arm64 bin/skopeo.windows.386.exe bin/skopeo.windows.amd64.exe $(MANPAGES): %: %.md +ifneq ($(DISABLE_DOCS), 1) sed -e 's/\((skopeo.*\.md)\)//' -e 's/\[\(skopeo.*\)\]/\1/' $< | $(GOMD2MAN) -in /dev/stdin -out $@ +endif docs: $(MANPAGES) @@ -179,8 +181,10 @@ install-binary: bin/skopeo install -m 755 bin/skopeo ${DESTDIR}${BINDIR}/skopeo install-docs: docs +ifneq ($(DISABLE_DOCS), 1) install -d -m 755 ${DESTDIR}${MANDIR}/man1 install -m 644 docs/*.1 ${DESTDIR}${MANDIR}/man1 +endif install-completions: install -m 755 -d ${DESTDIR}${BASHCOMPLETIONSDIR}