Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
e474b5b5
Commit
e474b5b5
authored
Nov 28, 2010
by
Iustin Pop
Browse files
Also build HTML versions of man pages
parent
b7b29191
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
e474b5b5
HPROGS
=
hbal hscan hail hspace
MANS
=
$
(
HPROGS:%
=
man/%.1
)
MANHTML
=
$
(
HPROGS:%
=
man/%.html
)
HALLPROGS
=
$(HPROGS)
test
HSRCS
:=
$(
wildcard
Ganeti/HTools/
*
.hs
)
$(
wildcard
Ganeti/
*
.hs
)
HDDIR
=
apidoc
...
...
@@ -14,7 +15,9 @@ HPCEXCL = --exclude Main --exclude Ganeti.HTools.QC
# Haskell rules
all
:
$(HPROGS) $(MANS)
all
:
$(HPROGS) man
man
:
$(MANS) $(MANHTML)
$(HALLPROGS)
:
%: %.hs Ganeti/HTools/Version.hs $(HSRCS) Makefile
...
...
@@ -30,6 +33,9 @@ $(DOCS) : %.html : %
%.1
:
%.rst
LANG
=
en_US.UTF-8 pandoc
-s
-f
rst
-t
man
-o
$@
$<
%.html
:
%.rst
LANG
=
en_US.UTF-8 pandoc
-s
-f
rst
-t
html
-o
$@
$<
doc
:
$(DOCS) Ganeti/HTools/Version.hs
rm
-rf
$(HDDIR)
/
*
mkdir
-p
$(HDDIR)
/Ganeti/HTools
...
...
@@ -118,4 +124,4 @@ tags:
lint
:
hlint
-r
-u
.
.PHONY
:
all doc maintainer-clean clean dist check tags regen-version
.PHONY
:
all doc maintainer-clean clean dist check tags regen-version
man
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment