mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
Also extend the documentation about the password. Automatically generate the man page from the options. Call xca as "XCA_MAN=1 ./xca" to print the current man-page options
47 lines
1.5 KiB
Makefile
47 lines
1.5 KiB
Makefile
ifeq ($(TOPDIR),)
|
|
TOPDIR=..
|
|
BUILD=..
|
|
endif
|
|
|
|
DELFILES=xca*.html xca.1.gz changelog.html database_schema.html
|
|
|
|
doc: xca.1.gz xca.html changelog.html database_schema.html
|
|
include $(TOPDIR)/Rules.mak
|
|
|
|
%.1.gz: %.1
|
|
@$(PRINT) " MAN [$(BASENAME)] $@"
|
|
gzip -9 <$^ >$@
|
|
|
|
xca.1: xca.1.head xca.1.options xca.1.tail
|
|
cat $^ > $@
|
|
|
|
xca.html: xca.sgml
|
|
rm -f xca*.html
|
|
echo 'The documentation for XCA can be viewed online at: <a href="http://hohnstaedt.de/documentation">http://hohnstaedt.de/documentation</a>.' > $@
|
|
test ! -f xca-doc.tgz || tar zxf xca-doc.tgz
|
|
@$(PRINT) " DOC [$(BASENAME)] $@"
|
|
$(ENABLE_DOC)$(DOCTOOL) $< >/dev/null
|
|
|
|
install: $(doc)
|
|
$(ENABLE_DOC)install -m 755 -d $(DESTDIR)$(htmldir)
|
|
$(ENABLE_DOC)install -m 644 xca*.html $(DESTDIR)$(htmldir)
|
|
install -m 755 -d $(DESTDIR)$(mandir)/man1
|
|
install -m 644 *.1.gz $(DESTDIR)/$(mandir)/man1
|
|
|
|
app: xca.html
|
|
mkdir -p $(APPDIR)/Resources
|
|
install -m 644 xca*.html $(APPDIR)/Resources
|
|
|
|
changelog.html: $(TOPDIR)/changelog $(TOPDIR)/doc/html.header
|
|
( cat $(TOPDIR)/doc/html.header; \
|
|
echo '</head><body><h2>Changelog</h2><div><ul>'; \
|
|
sed 's/&/\&/g; s/</\</g; s/>/\>/g; 2,$$ s/^xca.*-pre[0-9][0-9] .*/ <\/li><li class="prerelease">&/; s/^xca \([^ ]*\) *\(.*\)/<\/ul><\/div><div id="changelog_\1"><h3>xca \1 \2<\/h3><ul>/; s/\*/<\/li><li>/'; \
|
|
echo '</body></html>' \
|
|
) < $< > $@
|
|
|
|
database_schema.html: ../widgets/database_schema.cpp
|
|
$(TOPDIR)/doc/code2html -lcxx -ohtml $< $@
|
|
|
|
upload: database_schema.html changelog.html xca.html
|
|
scp *.html hohnstaedt.de:xca-doc/
|