mdbtools/doc/Makefile.am

38 lines
1.2 KiB
Makefile
Raw Normal View History

2003-01-05 23:00:23 +08:00
SHELL = /bin/sh
2020-09-02 08:27:19 +08:00
TXT2MAN = ./txt2man
2003-01-05 23:00:23 +08:00
PRODUCT = MDBTools
# To make the userguide, export DOCBOOK_DSL TO point to docbook.dsl.
dist_man_MANS =
if ENABLE_MAN
dist_man_MANS += mdb-tables.1 mdb-ver.1 mdb-export.1 mdb-schema.1 mdb-sql.1 \
2020-10-21 18:48:20 +08:00
mdb-array.1 mdb-header.1 mdb-hexdump.1 mdb-parsecsv.1 mdb-prop.1 mdb-import.1 \
mdb-count.1 mdb-json.1 mdb-queries.1
endif
if ENABLE_DOCBOOK
dist_man_MANS += install.tgz
endif
CLEANFILES = ${dist_man_MANS} install install.tgz
EXTRA_DIST = mdb-tables.txt mdb-ver.txt mdb-export.txt mdb-schema.txt mdb-sql.txt \
mdb-array.txt mdb-header.txt mdb-hexdump.txt mdb-parsecsv.txt mdb-prop.txt mdb-import.txt \
2020-10-21 18:48:20 +08:00
mdb-count.txt mdb-json.txt mdb-queries.txt \
2020-10-19 05:17:58 +08:00
faq.html install.sgml txt2man
2003-01-05 23:00:23 +08:00
.txt.1:
$(TXT2MAN) -t $* -r "$(PRODUCT) $(VERSION)" -s 1 -v "Executable programs or shell commands" $(srcdir)/$< > $@
2003-01-05 23:00:23 +08:00
# Converting DocBook to HTML (several small files)
# http://www.freebsd.org/tutorials/docproj-primer/x3132.html#AEN3140
install.tgz: $(srcdir)/install.sgml
rm -rf html
mkdir html
cd html && \
openjade -d ${DOCBOOK_DSL} -t sgml ../install.sgml
[ -f html/book1.htm ]
ln -s book1.htm html/index.html
[ -L install ] || ln -s html install
tar zcf install.tgz install/*
2003-01-05 23:00:23 +08:00
clean-local:
-rm -rf html