2005-11-22 12:26:26 +00:00
|
|
|
|
|
|
|
DOCDIR = $(DESTDIR)/$(datadir)/doc/@PACKAGE@
|
2005-11-28 14:52:00 +00:00
|
|
|
HTML_FILES = html/*.html geany.css
|
|
|
|
IMAGE_FILES = images/*.jpg
|
2005-11-22 12:26:26 +00:00
|
|
|
EXTRA_DIST = geany.css make_webable.sh geany.txt geany_gpl.docbook geany.1 geany.docbook $(HTML_FILES) $(IMAGE_FILES)
|
|
|
|
|
|
|
|
geany.1:
|
|
|
|
docbook-to-man ../debian/geany.sgml >geany.1
|
|
|
|
# docbook2man -o geany.1 ../debian/geany.sgml
|
|
|
|
|
2006-01-03 12:42:29 +00:00
|
|
|
pdf:
|
2005-11-22 12:26:26 +00:00
|
|
|
jw -b pdf geany.docbook
|
2006-01-03 12:42:29 +00:00
|
|
|
mv geany.pdf geany-$(VERSION).pdf
|
2005-11-22 12:26:26 +00:00
|
|
|
|
|
|
|
geany.txt:
|
|
|
|
jw -b txt geany.docbook
|
|
|
|
|
2005-12-11 18:06:07 +00:00
|
|
|
html/index.html:
|
2005-11-22 12:26:26 +00:00
|
|
|
# xmlto -o html/ xhtml geany.docbook
|
|
|
|
$(mkinstalldirs) html
|
|
|
|
xsltproc --stringparam html.stylesheet geany.css -o html/ \
|
2006-06-02 20:01:57 +00:00
|
|
|
/usr/share/xml/docbook/stylesheet/nwalsh/xhtml/chunk.xsl geany.docbook
|
2005-12-11 18:06:07 +00:00
|
|
|
test -f html/geany.css || cp geany.css html/
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2005-12-11 18:06:07 +00:00
|
|
|
doc: geany.1 geany.txt html/index.html
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2006-01-03 12:42:29 +00:00
|
|
|
doc-clean:
|
2005-12-11 18:06:07 +00:00
|
|
|
rm -rf html/*.html
|
|
|
|
rm -f html/geany.css
|
|
|
|
rm -f geany.1
|
|
|
|
rm -f geany.txt
|
2006-01-03 12:42:29 +00:00
|
|
|
rm -f *.pdf
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2006-02-14 21:56:34 +00:00
|
|
|
uninstall-local:
|
|
|
|
rm -rf $(DOCDIR);
|
|
|
|
|
2005-12-11 18:06:07 +00:00
|
|
|
install-data-local: geany.1 geany.txt html/index.html
|
2005-11-22 12:26:26 +00:00
|
|
|
$(mkinstalldirs) $(DOCDIR)/html/images
|
|
|
|
for file in `ls $(HTML_FILES)`; do \
|
2005-11-22 15:35:08 +00:00
|
|
|
if [ -f $$file ]; then \
|
|
|
|
basefile=`echo $$file | sed -e 's,^.*/,,'`; \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/$$file $(DOCDIR)/html/$$basefile; \
|
|
|
|
fi \
|
2005-11-22 12:26:26 +00:00
|
|
|
done
|
|
|
|
for file in `ls $(IMAGE_FILES)`; do \
|
2005-11-22 15:35:08 +00:00
|
|
|
if [ -f $$file ]; then \
|
|
|
|
basefile=`echo $$file | sed -e 's,^.*/,,'`; \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/$$file $(DOCDIR)/html/images/$$basefile; \
|
|
|
|
fi \
|
2005-11-22 12:26:26 +00:00
|
|
|
done
|
2006-02-14 21:56:34 +00:00
|
|
|
$(INSTALL_DATA) geany.txt $(DOCDIR)/manual.txt
|
|
|
|
$(INSTALL_DATA) ../README $(DOCDIR)
|
|
|
|
$(INSTALL_DATA) ../ChangeLog $(DOCDIR)
|
|
|
|
$(INSTALL_DATA) ../NEWS $(DOCDIR)
|
|
|
|
$(INSTALL_DATA) ../COPYING $(DOCDIR)
|
|
|
|
$(INSTALL_DATA) ../AUTHORS $(DOCDIR)
|
|
|
|
$(INSTALL_DATA) ../TODO $(DOCDIR)
|
2005-11-22 12:26:26 +00:00
|
|
|
|