aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.ruby.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Mk/bsd.ruby.mk')
-rw-r--r--Mk/bsd.ruby.mk7
1 files changed, 2 insertions, 5 deletions
diff --git a/Mk/bsd.ruby.mk b/Mk/bsd.ruby.mk
index 05a1d0c7080..93268c3cc4b 100644
--- a/Mk/bsd.ruby.mk
+++ b/Mk/bsd.ruby.mk
@@ -446,18 +446,15 @@ RUBY_RD_HTML_FILES= ${RUBY_RD_FILES:S/.rb$//:S/.rd././:S/.rd$//:S/$/.html/}
PLIST_SUB+= RUBY_RD_HTML_FILES=""
-pre-install: ruby-rd-build
-
-ruby-rd-build:
.if !empty(RUBY_RD_FILES)
+_USES_build+= 290:ruby-rd-build
+ruby-rd-build:
@${ECHO_MSG} "===> Generating HTML documents from RD documents"
@cd ${WRKSRC}; for rd in ${RUBY_RD_FILES}; do \
html=$$(echo $$rd | ${SED} 's/\.rb$$//;s/\.rd\././;s/\.rd$$//').html; \
${ECHO_MSG} "${RUBY_RD2} $$rd > $$html"; \
${RUBY_RD2} $$rd > $$html; \
done
-.else
- @${DO_NADA}
.endif
.else