move documentation into a docs/ folder

This commit is contained in:
Dylan Baker 2019-06-06 09:18:17 -07:00
parent b4d062ec93
commit 0a464db0fd
11 changed files with 43 additions and 39 deletions

View File

@ -87,46 +87,52 @@ check-local: bzip2
cmp $(top_builddir)/tests/sample3.tst $(top_srcdir)/tests/sample3.ref
@cat $(top_srcdir)/tests/words3
manual: $(srcdir)/manual.html $(srcdir)/manual.ps $(srcdir)/manual.pdf
manual: $(top_builddir)/docs/manual.html $(top_builddir)/docs/manual.ps $(top_builddir)/docs/manual.pdf
manual.ps: $(MANUAL_SRCS)
cd $(srcdir); ./xmlproc.sh -ps manual.xml
docs/manual.ps: $(MANUAL_SRCS)
cd $(top_srcdir)/docs; ./xmlproc.sh -ps manual.xml
manual.pdf: $(MANUAL_SRCS)
cd $(srcdir); ./xmlproc.sh -pdf manual.xml
docs/manual.pdf: $(MANUAL_SRCS)
cd $(top_srcdir)/docs; ./xmlproc.sh -pdf manual.xml
manual.html: $(MANUAL_SRCS)
cd $(srcdir); ./xmlproc.sh -html manual.xml
docs/manual.html: $(MANUAL_SRCS)
cd $(top_srcdir)/docs; ./xmlproc.sh -html manual.xml
EXTRA_DIST = \
$(bin_SCRIPTS) \
$(man_MANS) \
README.XML.STUFF \
README.autotools \
bz-common.xsl \
bz-fo.xsl \
bz-html.xsl \
bzip.css \
bzip2.pc.in \
bzip2.txt \
dlltest.c \
dlltest.dsp \
entities.xml \
format.pl \
docs/bz-common.xsl \
docs/bz-common.xsl \
docs/bz-fo.xsl \
docs/bz-fo.xsl \
docs/bz-html.xsl \
docs/bz-html.xsl \
docs/bzip.css \
docs/bzip.css \
docs/entities.xml \
docs/format.pl \
docs/manual.html \
docs/manual.pdf \
docs/manual.ps \
docs/manual.xml \
docs/meson.build \
docs/xmlproc.sh \
libbz2.def \
libbz2.dsp \
makefile.msc \
man/bzip2.1.preformatted \
manual.html \
manual.pdf \
manual.ps \
manual.xml \
man/meson.build \
meson.build \
meson_options.txt \
mk251.c \
spewG.c \
tests/meson.build
tests/meson.build \
tests/sample1.bz2 \
tests/sample1.ref \
tests/sample2.bz2 \
@ -137,5 +143,4 @@ EXTRA_DIST = \
tests/words1 \
tests/words2 \
tests/words3 \
unzcrash.c \
xmlproc.sh
unzcrash.c

17
docs/meson.build Normal file
View File

@ -0,0 +1,17 @@
build_docs = get_option('docs')
docs = find_program('xsltproc', required : build_docs).found()
docs = docs and find_program('perl', required : build_docs).found()
docs = docs and find_program('xmllint', required : build_docs).found()
docs = docs and find_program('egrep', required : build_docs).found()
docs = docs and find_program('pdfxmltex', required : build_docs).found()
docs = docs and find_program('pdftops', required : build_docs).found()
prog_sh = find_program('sh', required : build_docs)
if docs and prog_sh.found()
foreach t : ['pdf', 'ps', 'html']
custom_target(
'manual.' + t,
command : [prog_sh, 'xmlproc.sh', '-' + t, '@OUTPUT@'],
output : 'manual.' + t,
)
endforeach
endif

View File

@ -64,24 +64,6 @@ pkg.generate(
## install headers
install_headers('bzlib.h')
# Generate manual files with xmlproc
build_docs = get_option('docs')
docs = find_program('xsltproc', required : build_docs).found()
docs = docs and find_program('perl', required : build_docs).found()
docs = docs and find_program('xmllint', required : build_docs).found()
docs = docs and find_program('egrep', required : build_docs).found()
docs = docs and find_program('pdfxmltex', required : build_docs).found()
docs = docs and find_program('pdftops', required : build_docs).found()
prog_sh = find_program('sh', required : build_docs)
if docs and prog_sh.found()
foreach t : ['pdf', 'ps', 'html']
custom_target(
'manual.' + t,
command : [prog_sh, 'xmlproc.sh', '-' + t, '@OUTPUT@'],
output : 'manual.' + t,
)
endforeach
endif
subdir('man')
subdir('docs')
subdir('tests')