www.nico.schottelius.org/software/cinit/browse_source/cinit-0.3pre2/doc/Makefile
Nico Schottelius 423ba10303 import cinit from unix.schottelius.org
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-09-16 12:53:45 +02:00

59 lines
1.2 KiB
Makefile

#
# Makefile stolen from ccollect
# Nico Schottelius, Fri Jan 13 12:13:08 CET 2006
#
INSTALL=install
CCOLLECT=ccollect.sh
LN=ln -sf
prefix=/usr/packages/ccollect-git
bindir=$(prefix)/bin
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
#
# End user targets
#
all:
@echo "Creating asciidoc based documentation"
@asciidoc -n -o ccollect.html doc/ccollect.text
%.html: %.text
echo asciidoc $< -n $> -o $^.html $^.text $@
install: install-script install-link
install-link: install-script
$(LN) $(destination) $(path_destination)
install-script:
$(INSTALL) -D -m 0755 -s $(CCOLLECT) $(destination)
documentation:
@echo "Generating HTML-documentation (en de) ..."
@asciidoc -n -o doc/ccollect.html doc/ccollect.text
@asciidoc -n -o doc/ccollect-DE.html doc/ccollect-DE.text
#
# Developer targets
#
update:
@cg-update creme
push-work:
@cg-push creme
@cg-push sygroup
publish-doc: documentation
@echo "Transferring files to $(host)"
@chmod a+r doc/*.html doc/*.text
@scp doc/*.text doc/*.html $(host):$(docdir)