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
|
|
|
|
|
2011-10-22 20:54:32 +08:00
|
|
|
# To make the userguide, export DOCBOOK_DSL TO point to docbook.dsl.
|
2013-07-04 19:22:52 +08:00
|
|
|
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-12 02:59:08 +08:00
|
|
|
mdb-array.1 mdb-header.1 mdb-hexdump.1 mdb-parsecsv.1 mdb-prop.1 mdb-import.1
|
2013-07-04 19:22:52 +08:00
|
|
|
endif
|
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 \
|
2014-12-29 20:10:01 +08:00
|
|
|
mdb-array.txt mdb-header.txt mdb-hexdump.txt mdb-parsecsv.txt mdb-prop.txt mdb-import.txt \
|
2020-10-19 05:17:58 +08:00
|
|
|
faq.html install.sgml txt2man
|
2003-01-05 23:00:23 +08:00
|
|
|
|
2011-10-22 20:54:32 +08:00
|
|
|
.txt.1:
|
2013-07-04 19:22:52 +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
|