diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-08-23 17:34:24 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-08-23 17:34:24 +0200 |
commit | 36014c5ca90936eb3a8f6e6ac39b09091b75a434 (patch) | |
tree | 89f621601d4aeeebeaa43aae9be7f5fb960f3f63 /mk | |
parent | read and write vtfile (diff) | |
download | mds-36014c5ca90936eb3a8f6e6ac39b09091b75a434.tar.gz mds-36014c5ca90936eb3a8f6e6ac39b09091b75a434.tar.bz2 mds-36014c5ca90936eb3a8f6e6ac39b09091b75a434.tar.xz |
beginning of texinfo manual
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'mk')
-rw-r--r-- | mk/build-doc.mk | 52 | ||||
-rw-r--r-- | mk/config.mk | 4 |
2 files changed, 56 insertions, 0 deletions
diff --git a/mk/build-doc.mk b/mk/build-doc.mk new file mode 100644 index 0000000..6e1eed6 --- /dev/null +++ b/mk/build-doc.mk @@ -0,0 +1,52 @@ +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. This file is offered as-is, +# without any warranty. + + +.PHONY: doc +doc: info pdf ps dvi + +.PHONY: info pdf ps dvi +info: bin/mds.info +pdf: bin/mds.pdf +ps: bin/mds.ps +dvi: bin/mds.dvi + + +#obj/logo.svg: logo.svg +# @mkdir -p obj +# cp $< $@ +# +#obj/logo.pdf: logo.svg +# @mkdir -p obj +# rsvg-convert --format=pdf $< > $@ +# +#obj/logo.eps: obj/logo.ps +# ps2eps $< +# +#obj/logo.ps: logo.svg +# @mkdir -p obj +# rsvg-convert --format=ps $< > $@ + + +bin/%.info: doc/info/%.texinfo doc/info/*.texinfo + @mkdir -p bin + $(MAKEINFO) $(TEXIFLAGS) $< + mv $*.info $@ + +bin/%.pdf: doc/info/%.texinfo doc/info/*.texinfo + @mkdir -p obj bin + cd obj && yes X | texi2pdf $(TEXIFLAGS) ../$< + mv obj/$*.pdf $@ + +bin/%.dvi: doc/info/%.texinfo doc/info/*.texinfo + @mkdir -p obj bin + cd obj && yes X | $(TEXI2DVI) $(TEXIFLAGS) ../$< + mv obj/$*.dvi $@ + +bin/%.ps: doc/info/%.texinfo doc/info/*.texinfo + @mkdir -p obj bin + cd obj && yes X | texi2pdf $(TEXIFLAGS) --ps ../$< + mv obj/$*.ps $@ + diff --git a/mk/config.mk b/mk/config.mk index f33f469..a961a53 100644 --- a/mk/config.mk +++ b/mk/config.mk @@ -72,3 +72,7 @@ C_FLAGS = $(OPTIMISE) $(WARN) -std=$(STD) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \ -fstrict-overflow -funsafe-loop-optimizations -fno-builtin \ -D'_GNU_SOURCE' -D'PKGNAME="$(PKGNAME)"' $(DEBUG_FLAGS) + +# Flags to pass into the manual compilers. +TEXIFLAGS = #--force + |