Permalink
Browse files

btrfs-progs: graciously handle documentation

  • Loading branch information...
1 parent f7a86f2 commit 4e9a2ec808d688af969eb5f1661a2c04011bbed7 @Ratler Ratler committed Aug 12, 2014
Showing with 8 additions and 0 deletions.
  1. +2 −0 filesys/btrfs-progs/DEPENDS
  2. +6 −0 filesys/btrfs-progs/PRE_BUILD
@@ -1 +1,3 @@
depends lzo
+optional_depends xmlto "" "" "for documentation (also requires asciidoc)"
+optional_depends asciidoc "" "" "for documentation (also requires xmlto)"
@@ -0,0 +1,6 @@
+default_pre_build &&
+
+if ! in_depends $MODULE asciidoc || ! in_depends $MODULE xmlto; then
+ message "${PROBLEM_COLOR}WARNING: ${DEFAULT_COLOR}Installation of docs disabled, to enable documentation install asciidoc and xmlto then rebuild $MODULE!"
+ sedit 's;install-Documentation;;;s;build-Documentation;;' Makefile
+fi

0 comments on commit 4e9a2ec

Please sign in to comment.