2006-01-13 11:44:02 +00:00
|
|
|
#
|
|
|
|
# ccollect
|
|
|
|
# Nico Schottelius, Fri Jan 13 12:13:08 CET 2006
|
|
|
|
#
|
|
|
|
|
|
|
|
INSTALL=install
|
|
|
|
CCOLLECT=ccollect.sh
|
|
|
|
LN=ln -sf
|
2006-05-12 13:41:49 +00:00
|
|
|
ASCIIDOC=asciidoc
|
|
|
|
DOCBOOKTOTEXI=docbook2x-texi
|
2006-05-12 15:17:28 +00:00
|
|
|
DOCBOOKTOMAN=docbook2x-man
|
2006-01-13 11:44:02 +00:00
|
|
|
|
2006-03-08 22:02:34 +00:00
|
|
|
prefix=/usr/packages/ccollect-git
|
2006-01-13 11:44:02 +00:00
|
|
|
bindir=$(prefix)/bin
|
|
|
|
destination=$(bindir)/$(CCOLLECT)
|
|
|
|
|
|
|
|
path_dir=/usr/local/bin
|
|
|
|
path_destination=$(path_dir)/$(CCOLLECT)
|
|
|
|
|
2006-01-17 11:11:05 +00:00
|
|
|
# where to publish
|
|
|
|
host=creme.schottelius.org
|
|
|
|
dir=www/org/schottelius/linux/ccollect
|
|
|
|
docdir=$(dir)/doc
|
|
|
|
|
2006-05-12 13:54:38 +00:00
|
|
|
#
|
|
|
|
# Asciidoc will be used to generate other formats later
|
|
|
|
#
|
2006-05-12 15:42:08 +00:00
|
|
|
MANDOCS = doc/man/ccollect.text
|
|
|
|
DOCS = $(MANDOCS) doc/ccollect.text doc/ccollect-DE.text
|
2006-05-12 13:54:38 +00:00
|
|
|
|
2006-01-22 11:53:45 +00:00
|
|
|
#
|
|
|
|
# End user targets
|
|
|
|
#
|
2006-01-13 11:44:02 +00:00
|
|
|
all:
|
|
|
|
@echo "Nothing to make, make install."
|
|
|
|
|
2006-01-22 11:53:45 +00:00
|
|
|
install: install-script install-link
|
|
|
|
|
|
|
|
install-link: install-script
|
2006-01-17 11:13:30 +00:00
|
|
|
$(LN) $(destination) $(path_destination)
|
|
|
|
|
2006-01-22 11:53:45 +00:00
|
|
|
install-script:
|
2006-06-11 12:31:45 +00:00
|
|
|
$(INSTALL) -D -m 0755 $(CCOLLECT) $(destination)
|
2006-01-22 11:53:45 +00:00
|
|
|
|
2006-05-12 13:41:49 +00:00
|
|
|
|
|
|
|
%.html: %.text
|
|
|
|
${ASCIIDOC} -n -o $@ $<
|
|
|
|
|
|
|
|
%.docbook: %.text
|
|
|
|
${ASCIIDOC} -n -b docbook -o $@ $<
|
|
|
|
|
|
|
|
%.texi: %.docbook
|
|
|
|
${DOCBOOKTOTEXI} --to-stdout $< > $@
|
2006-01-13 11:44:02 +00:00
|
|
|
|
2006-05-12 15:42:08 +00:00
|
|
|
%.mandocbook: %.text
|
|
|
|
${ASCIIDOC} -b docbook -d manpage -o $@ $<
|
|
|
|
|
|
|
|
%.man: %.mandocbook
|
2006-05-12 15:17:28 +00:00
|
|
|
${DOCBOOKTOMAN} --to-stdout $< > $@
|
|
|
|
|
2006-01-17 11:13:30 +00:00
|
|
|
#
|
|
|
|
# Developer targets
|
|
|
|
#
|
|
|
|
update:
|
|
|
|
@cg-update creme
|
|
|
|
|
|
|
|
push-work:
|
|
|
|
@cg-push creme
|
2006-02-23 08:42:05 +00:00
|
|
|
@cg-push sygroup
|
2006-01-17 11:13:30 +00:00
|
|
|
|
2006-01-17 11:11:05 +00:00
|
|
|
publish-doc: documentation
|
2006-03-08 22:02:34 +00:00
|
|
|
@echo "Transferring files to $(host)"
|
|
|
|
@chmod a+r doc/*.html doc/*.text
|
2006-06-13 10:44:32 +00:00
|
|
|
@scp doc/*.text doc/*.html doc/*.texi doc/man/*.man $(host):$(docdir)
|
|
|
|
@ssh $(host) "cd $(docdir); chmod a+r *"
|
2006-05-12 13:54:38 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Doku
|
|
|
|
#
|
|
|
|
HTMLDOCS = $(DOCS:.text=.html)
|
|
|
|
|
|
|
|
TEXIDOCS = $(DOCS:.text=.texi)
|
|
|
|
|
2006-05-12 15:42:08 +00:00
|
|
|
MANPDOCS = $(MANDOCS:.text=.man)
|
2006-05-12 15:17:28 +00:00
|
|
|
|
2006-05-12 13:54:38 +00:00
|
|
|
DOCBDOCS = $(DOCS:.text=.docbook)
|
|
|
|
|
2006-05-12 15:17:28 +00:00
|
|
|
|
2006-05-12 15:42:08 +00:00
|
|
|
html: $(HTMLDOCS)
|
|
|
|
|
|
|
|
info: $(TEXIDOCS)
|
2006-05-12 13:54:38 +00:00
|
|
|
|
2006-05-12 15:42:08 +00:00
|
|
|
man: $(MANPDOCS)
|
2006-05-12 13:54:38 +00:00
|
|
|
|
2006-05-12 15:42:08 +00:00
|
|
|
documentation: html info man
|
2006-05-12 13:54:38 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Distribution
|
|
|
|
#
|
|
|
|
allclean:
|
2006-05-12 15:42:08 +00:00
|
|
|
rm -f $(TEXIDOCS) $(HTMLDOCS) $(MANPDOCS) $(DOCBDOCS)
|
2006-05-12 13:54:38 +00:00
|
|
|
|
|
|
|
distclean:
|
|
|
|
rm -f $(DOCBDOCS)
|
|
|
|
|
|
|
|
dist: distclean documentation
|