aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/info/mds.texinfo32
-rw-r--r--mk/build-doc.mk34
2 files changed, 49 insertions, 17 deletions
diff --git a/doc/info/mds.texinfo b/doc/info/mds.texinfo
index 0f70abd..f54a437 100644
--- a/doc/info/mds.texinfo
+++ b/doc/info/mds.texinfo
@@ -3,9 +3,22 @@
@c %**start of header
@setfilename mds.info
@settitle mds
+
@afourpaper
+@c This document does not support @afivepaper
+@c This document does not support @smallbook
+
@documentencoding UTF-8
@documentlanguage en
+
+@c @set HARDCOPY
+@c @set LOGO
+
+@ifset HARDCOPY
+@cropmarks
+@setchapternewpage odd
+@end ifset
+
@finalout
@c %**end of header
@@ -16,6 +29,7 @@
@end direntry
+@ifclear HARDCOPY
@copying
Copyright @copyright{} 2014, 2015 Mattias Andrée
@@ -28,6 +42,10 @@ Texts. A copy of the license is included in the section entitled
``GNU Free Documentation License''.
@end quotation
@end copying
+@end ifclear
+@ifset HARDCOPY
+@include hardcopy-copying.texinfo
+@end ifset
@ifnottex
@node Top
@@ -38,6 +56,15 @@ Texts. A copy of the license is included in the section entitled
@titlepage
@title mds
@subtitle The avant-garde micro-display server
+@ifset LOGO
+@vskip 0pt plus 1filll
+@comment this way, it is centered exactly in pdf and approximently in dvi and ps
+@comment @center does not work for @image in dvi and ps
+@multitable @columnfractions 0.15 0.7
+@item @tab @center @image{../logo,250px}
+@end multitable
+@vskip 0pt plus 2filll
+@end ifset
@author by Mattias Andrée (maandree)
@page
@@ -45,6 +72,11 @@ Texts. A copy of the license is included in the section entitled
@c Well, here we are 23 years later and we are still
@c doing, but where it is even easier not to.
@vskip 0pt plus 1filll
+@ifclear HARDCOPY
+If you prefer a dead tree edition, you can order one from
+...
+@*
+@end ifclear
@insertcopying
@end titlepage
diff --git a/mk/build-doc.mk b/mk/build-doc.mk
index bc5e2ef..c4cf0ea 100644
--- a/mk/build-doc.mk
+++ b/mk/build-doc.mk
@@ -14,20 +14,20 @@ 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 $< > $@
+obj/logo.svg: doc/logo.svg
+ @mkdir -p obj
+ cp $< $@
+
+obj/logo.pdf: doc/logo.svg
+ @mkdir -p obj
+ rsvg-convert --format=pdf $< > $@
+
+obj/logo.eps: obj/logo.ps
+ ps2eps $<
+
+obj/logo.ps: doc/logo.svg
+ @mkdir -p obj
+ rsvg-convert --format=ps $< > $@
bin/%.info: doc/info/%.texinfo doc/info/*.texinfo
@@ -35,17 +35,17 @@ bin/%.info: doc/info/%.texinfo doc/info/*.texinfo
$(MAKEINFO) $(TEXIFLAGS) $<
mv $*.info $@
-bin/%.pdf: doc/info/%.texinfo doc/info/*.texinfo
+bin/%.pdf: doc/info/%.texinfo doc/info/*.texinfo # obj/logo.pdf
@mkdir -p obj/pdf bin
cd obj/pdf && yes X | texi2pdf $(TEXIFLAGS) ../../$<
mv obj/pdf/$*.pdf $@
-bin/%.dvi: doc/info/%.texinfo doc/info/*.texinfo
+bin/%.dvi: doc/info/%.texinfo doc/info/*.texinfo # obj/logo.eps
@mkdir -p obj/dvi bin
cd obj/dvi && yes X | $(TEXI2DVI) $(TEXIFLAGS) ../../$<
mv obj/dvi/$*.dvi $@
-bin/%.ps: doc/info/%.texinfo doc/info/*.texinfo
+bin/%.ps: doc/info/%.texinfo doc/info/*.texinfo # obj/logo.eps
@mkdir -p obj/ps bin
cd obj/ps && yes X | texi2pdf $(TEXIFLAGS) --ps ../../$<
mv obj/ps/$*.ps $@