2003-01-05 23:00:23 +08:00
|
|
|
SHELL = /bin/sh
|
2010-06-18 07:54:45 +08:00
|
|
|
TXT2MAN = txt2man
|
2003-01-05 23:00:23 +08:00
|
|
|
PRODUCT = MDBTools
|
|
|
|
|
2011-10-22 20:54:32 +08:00
|
|
|
# To make the userguide, export DOCBOOK_DSL TO point to docbook.dsl.
|
|
|
|
|
2010-06-18 07:53:40 +08:00
|
|
|
dist_man_MANS = mdb-tables.1 mdb-ver.1 mdb-export.1 mdb-schema.1 mdb-sql.1 \
|
|
|
|
mdb-array.1 mdb-header.1 mdb-hexdump.1 mdb-parsecsv.1 mdb-prop.1 gmdb2.1
|
2011-10-22 20:54:32 +08:00
|
|
|
if ENABLE_DOCBOOK
|
|
|
|
dist_man_MANS += install.tgz
|
|
|
|
endif
|
2012-01-20 05:38:07 +08:00
|
|
|
CLEANFILES = ${dist_man_MANS} install install.tgz
|
2011-10-22 20:54:32 +08:00
|
|
|
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 gmdb2.txt \
|
|
|
|
faq.html install.sgml
|
2003-01-05 23:00:23 +08:00
|
|
|
|
2011-10-22 20:54:32 +08:00
|
|
|
.txt.1:
|
2012-10-11 00:26:23 +08:00
|
|
|
- $(TXT2MAN) -t $* -r "$(PRODUCT) $(VERSION)" -s 1 -v "Executable programs or shell commands" $(srcdir)/$< > $@
|
2003-01-05 23:00:23 +08:00
|
|
|
|
2011-10-22 20:54:32 +08:00
|
|
|
# Converting DocBook to HTML (several small files)
|
|
|
|
# http://www.freebsd.org/tutorials/docproj-primer/x3132.html#AEN3140
|
2003-01-13 06:59:41 +08:00
|
|
|
install.tgz: $(srcdir)/install.sgml
|
2012-01-20 05:38:07 +08:00
|
|
|
rm -rf html
|
|
|
|
mkdir html
|
2011-10-22 20:54:32 +08:00
|
|
|
cd html && \
|
2012-01-20 05:38:07 +08:00
|
|
|
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
|
2011-10-22 20:54:32 +08:00
|
|
|
tar zcf install.tgz install/*
|
2003-01-05 23:00:23 +08:00
|
|
|
|
2011-10-22 20:54:32 +08:00
|
|
|
clean-local:
|
|
|
|
-rm -rf html
|