Generate and publish documentation via make
This commit is contained in:
parent
695567b0ce
commit
aa680ca284
2 changed files with 13 additions and 1 deletions
10
Makefile
10
Makefile
|
|
@ -14,12 +14,22 @@ destination=$(bindir)/$(CCOLLECT)
|
|||
path_dir=/usr/local/bin
|
||||
path_destination=$(path_dir)/$(CCOLLECT)
|
||||
|
||||
# where to publish
|
||||
host=creme.schottelius.org
|
||||
dir=www/org/schottelius/linux/ccollect
|
||||
docdir=$(dir)/doc
|
||||
|
||||
all:
|
||||
@echo "Nothing to make, make install."
|
||||
|
||||
documentation:
|
||||
@echo "Generating HTML-documentation"
|
||||
@asciidoc -n -o doc/ccollect.html doc/ccollect.text
|
||||
|
||||
publish-doc: documentation
|
||||
@chmod a+r doc/ccollect.html
|
||||
@scp doc/ccollect.html doc/ccollect.text $(host):$(docdir)
|
||||
|
||||
install:
|
||||
$(INSTALL) -D -m 0755 -s $(CCOLLECT) $(destination)
|
||||
$(LN) $(destination) $(path_destination)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue