forked from ungleich-public/ccollect
Cleaned up Makefile
This commit is contained in:
parent
a58ba2e1cf
commit
0e5041f833
2 changed files with 34 additions and 4 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,5 @@
|
|||
conf/sources/*/destination/*
|
||||
doc/old
|
||||
doc/*.html
|
||||
doc/*.docbook
|
||||
doc/*.texi
|
||||
|
|
36
Makefile
36
Makefile
|
@ -21,6 +21,11 @@ host=creme.schottelius.org
|
|||
dir=www/org/schottelius/linux/ccollect
|
||||
docdir=$(dir)/doc
|
||||
|
||||
#
|
||||
# Asciidoc will be used to generate other formats later
|
||||
#
|
||||
DOCS = doc/ccollect.text doc/ccollect-DE.text
|
||||
|
||||
#
|
||||
# End user targets
|
||||
#
|
||||
|
@ -35,10 +40,6 @@ install-link: install-script
|
|||
install-script:
|
||||
$(INSTALL) -D -m 0755 -s $(CCOLLECT) $(destination)
|
||||
|
||||
documentation: doc/ccollect.html doc/ccollect-DE.html
|
||||
@echo "Generated documentation"
|
||||
# @asciidoc -n -o doc/ccollect.html doc/ccollect.text
|
||||
# @asciidoc -n -o doc/ccollect-DE.html doc/ccollect-DE.text
|
||||
|
||||
%.html: %.text
|
||||
${ASCIIDOC} -n -o $@ $<
|
||||
|
@ -63,3 +64,30 @@ publish-doc: documentation
|
|||
@echo "Transferring files to $(host)"
|
||||
@chmod a+r doc/*.html doc/*.text
|
||||
@scp doc/*.text doc/*.html $(host):$(docdir)
|
||||
|
||||
#
|
||||
# Doku
|
||||
#
|
||||
HTMLDOCS = $(DOCS:.text=.html)
|
||||
|
||||
TEXIDOCS = $(DOCS:.text=.texi)
|
||||
|
||||
DOCBDOCS = $(DOCS:.text=.docbook)
|
||||
|
||||
html: ${HTMLDOCS}
|
||||
|
||||
info: ${TEXIDOCS}
|
||||
|
||||
documentation: html info
|
||||
|
||||
#
|
||||
# Distribution
|
||||
#
|
||||
allclean:
|
||||
#rm -f doc/*.docbook doc/*.html doc/*.texi
|
||||
rm -f $(TEXIDOCS) $(HTMLDOCS)
|
||||
|
||||
distclean:
|
||||
rm -f $(DOCBDOCS)
|
||||
|
||||
dist: distclean documentation
|
||||
|
|
Loading…
Reference in a new issue