diff options
author | erics <erics@web> | 2017-11-01 20:59:21 +0000 |
---|---|---|
committer | admin <admin@branchable.com> | 2017-11-01 20:59:21 +0000 |
commit | f6bd81c239cd0685f82b2477bb1dc50df35712d7 (patch) | |
tree | 971ec32143548b88cdb186561383f0b68c05c7bb | |
parent | edac0b25d65f1f6f29dcf1861622c79cdd5fb1c1 (diff) |
-rw-r--r-- | doc/bugs/__91__PATCH__93___Cosmetic__58___only_print_ikiwiki_command_if_it__39__s_run.mdwn | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/doc/bugs/__91__PATCH__93___Cosmetic__58___only_print_ikiwiki_command_if_it__39__s_run.mdwn b/doc/bugs/__91__PATCH__93___Cosmetic__58___only_print_ikiwiki_command_if_it__39__s_run.mdwn new file mode 100644 index 000000000..02fac5a6a --- /dev/null +++ b/doc/bugs/__91__PATCH__93___Cosmetic__58___only_print_ikiwiki_command_if_it__39__s_run.mdwn @@ -0,0 +1,42 @@ +No intended functional change; only what *make* prints should be different. + + commit bb43afb0d70311dc9fd7633133c3c4fec32511e6 + Author: Eric Siegerman <pub08-git@davor.org> + Date: Tue Oct 31 02:33:13 2017 -0400 + + Refactor "make docs" to eliminate confusing output + + The the many lines of arguments to the ikiwiki command would + always be printed -- even if ikiwiki was unavailable. Now + you'll only see them if they're accomplishing something. + + diff --git a/Makefile b/Makefile + index aceb65cae..121b19a99 100644 + --- a/Makefile + +++ b/Makefile + @@ -88,16 +88,21 @@ tags: + # If ikiwiki is available, build static html docs suitable for being + # shipped in the software package. + ifeq ($(shell which ikiwiki),) + -IKIWIKI=echo "** ikiwiki not found, skipping building docs" >&2; true + +BUILD_DOCS=_skip_building_docs + else + -IKIWIKI=ikiwiki + +BUILD_DOCS = _build_docs + endif + + mans: Build/MakeMans + ./Build/MakeMans + + -docs: mans + - LC_ALL=C TZ=UTC $(IKIWIKI) doc html -v --wikiname git-annex \ + +docs: mans $(BUILD_DOCS) + + + +_skip_building_docs: + + @echo "** ikiwiki not found, skipping building docs" >&2 + + + +_build_docs: + + LC_ALL=C TZ=UTC ikiwiki doc html -v --wikiname git-annex \ + --plugin=goodstuff \ + --no-usedirs --disable-plugin=openid --plugin=sidebar \ + --plugin theme --set theme=actiontabs --set deterministic=1 \ |