simplify ikiwiki docs build testing and output
This commit is contained in:
parent
f88ff8d460
commit
193612c97a
3 changed files with 28 additions and 19 deletions
20
Makefile
20
Makefile
|
@ -1,4 +1,4 @@
|
||||||
all=git-annex git-annex-shell mans docs Build/InstallDesktopFile
|
all=git-annex git-annex-shell mans docs
|
||||||
|
|
||||||
# set to "./Setup" if you lack a cabal program. Or can be set to "stack"
|
# set to "./Setup" if you lack a cabal program. Or can be set to "stack"
|
||||||
BUILDER?=cabal
|
BUILDER?=cabal
|
||||||
|
@ -85,19 +85,14 @@ retest: git-annex
|
||||||
tags:
|
tags:
|
||||||
(for f in $$(find . | grep -v /.git/ | grep -v /tmp/ | grep -v /dist/ | grep -v /doc/ | egrep '\.hs$$'); do hothasktags -c --cpp -c -traditional -c --include=dist/build/autogen/cabal_macros.h $$f; done) 2>/dev/null | sort > tags
|
(for f in $$(find . | grep -v /.git/ | grep -v /tmp/ | grep -v /dist/ | grep -v /doc/ | egrep '\.hs$$'); do hothasktags -c --cpp -c -traditional -c --include=dist/build/autogen/cabal_macros.h $$f; done) 2>/dev/null | sort > 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
|
|
||||||
else
|
|
||||||
IKIWIKI=ikiwiki
|
|
||||||
endif
|
|
||||||
|
|
||||||
mans: Build/MakeMans
|
mans: Build/MakeMans
|
||||||
./Build/MakeMans
|
./Build/MakeMans
|
||||||
|
|
||||||
|
# If ikiwiki is available, build static html docs suitable for being
|
||||||
|
# shipped in the software package.
|
||||||
docs: mans
|
docs: mans
|
||||||
LC_ALL=C TZ=UTC $(IKIWIKI) doc html -v --wikiname git-annex \
|
@if [ -n "`which ikiwiki`" ]; then \
|
||||||
|
LC_ALL=C TZ=UTC ikiwiki doc html -v --wikiname git-annex \
|
||||||
--plugin=goodstuff \
|
--plugin=goodstuff \
|
||||||
--no-usedirs --disable-plugin=openid --plugin=sidebar \
|
--no-usedirs --disable-plugin=openid --plugin=sidebar \
|
||||||
--plugin theme --set theme=actiontabs --set deterministic=1 \
|
--plugin theme --set theme=actiontabs --set deterministic=1 \
|
||||||
|
@ -106,7 +101,10 @@ docs: mans
|
||||||
--exclude='ikiwiki/*' \
|
--exclude='ikiwiki/*' \
|
||||||
--exclude='news/.*' --exclude='design/assistant/blog/*' \
|
--exclude='news/.*' --exclude='design/assistant/blog/*' \
|
||||||
--exclude='bugs/*' --exclude='todo/*' --exclude='forum/*' \
|
--exclude='bugs/*' --exclude='todo/*' --exclude='forum/*' \
|
||||||
--exclude='users/*' --exclude='devblog/*' --exclude='thanks'
|
--exclude='users/*' --exclude='devblog/*' --exclude='thanks'; \
|
||||||
|
else \
|
||||||
|
echo "** ikiwiki not found, skipping building docs" >&2; \
|
||||||
|
fi
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
if [ "$(BUILDER)" != ./Setup ] && [ "$(BUILDER)" != cabal ]; then $(BUILDER) clean; fi
|
if [ "$(BUILDER)" != ./Setup ] && [ "$(BUILDER)" != cabal ]; then $(BUILDER) clean; fi
|
||||||
|
|
|
@ -40,3 +40,5 @@ No intended functional change; only what *make* prints should be different.
|
||||||
--plugin=goodstuff \
|
--plugin=goodstuff \
|
||||||
--no-usedirs --disable-plugin=openid --plugin=sidebar \
|
--no-usedirs --disable-plugin=openid --plugin=sidebar \
|
||||||
--plugin theme --set theme=actiontabs --set deterministic=1 \
|
--plugin theme --set theme=actiontabs --set deterministic=1 \
|
||||||
|
|
||||||
|
> [[done]] --[[Joey]]
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
[[!comment format=mdwn
|
||||||
|
username="joey"
|
||||||
|
subject="""comment 1"""
|
||||||
|
date="2017-11-07T20:31:00Z"
|
||||||
|
content="""
|
||||||
|
I don't like this amount of complication for a build system cosmetic
|
||||||
|
improvement. Instead, I have added a "@" to the objectionably long
|
||||||
|
command line in the Makefile.
|
||||||
|
"""]]
|
Loading…
Reference in a new issue