Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build install.tgz documentation when DOCBOOK_DSL is defined, as advertised by the comments. Clean up unused html/dist/man targets new clean-local target to remove tmp & html files
- Loading branch information
Showing
2 changed files
with
28 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,37 @@ | ||
# Converting DocBook to HTML (several small files) | ||
# http://www.freebsd.org/tutorials/docproj-primer/x3132.html#AEN3140 | ||
SHELL = /bin/sh | ||
TXT2MAN = txt2man | ||
PRODUCT = MDBTools | ||
|
||
# To make the userguide, export DOCBOOK_DSL TO point to docbook.dsl. | ||
|
||
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 | ||
if ENABLE_DOCBOOK | ||
dist_man_MANS += install.tgz | ||
endif | ||
DISTCLEANFILES = ${dist_man_MANS} | ||
EXTRA_DIST = mdb-tables.txt mdb-ver.txt mdb-export.txt mdb-schema.txt mdb-sql.txt faq.html txt2man install.sgml | ||
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 | ||
|
||
html: install.tgz | ||
|
||
dist: install.tgz man | ||
#dist: man | ||
|
||
# To make the userguide, export DOCBOOK_DSL TO point to docbook.dsl. | ||
.txt.1: | ||
- $(TXT2MAN) -P $(PRODUCT) -t $(PRODUCT) -r $(VERSION) -s 1 $(srcdir)/$< > $@ | ||
|
||
# Converting DocBook to HTML (several small files) | ||
# http://www.freebsd.org/tutorials/docproj-primer/x3132.html#AEN3140 | ||
install.tgz: $(srcdir)/install.sgml | ||
if test -n "${DOCBOOK_DSL}"; then \ | ||
rm -rf html && \ | ||
mkdir html && \ | ||
cd html && pwd && \ | ||
openjade -d ${DOCBOOK_DSL} -t sgml ../$(srcdir)/install.sgml; \ | ||
test -f book1.htm && \ | ||
ln -s book1.htm index.html && cd .. && \ | ||
if ! [ -L userguide ]; then \ | ||
ln -s html install; \ | ||
fi; \ | ||
tar zcf install.tgz install/* \ | ||
; fi | ||
rm -rf html && \ | ||
mkdir html && \ | ||
cd html && \ | ||
openjade -d ${DOCBOOK_DSL} -t sgml ../$(srcdir)/install.sgml; \ | ||
test -f book1.htm && \ | ||
ln -s book1.htm index.html && \ | ||
cd .. && \ | ||
if ! [ -L userguide ]; then \ | ||
ln -s html install; \ | ||
fi ; \ | ||
tar zcf install.tgz install/* | ||
|
||
man: mdb-tables.1 mdb-ver.1 mdb-export.1 mdb-sql.1 | ||
|
||
.txt.1: | ||
- $(TXT2MAN) -P $(PRODUCT) -t $(PRODUCT) -r $(VERSION) -s 1 $(srcdir)/$< > $@ | ||
clean-local: | ||
-rm -rf html | ||
-rm -f install |