File: Makefile.in

package info (click to toggle)
cafeobj 1.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 19,900 kB
  • sloc: lisp: 85,055; sh: 659; makefile: 437; perl: 147
file content (99 lines) | stat: -rw-r--r-- 3,522 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#
# Copyright (c) 2014, Norbert Preining. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
#   * Redistributions of source code must retain the above copyright
#     notice, this list of conditions and the following disclaimer.
#
#   * Redistributions in binary form must reproduce the above
#     copyright notice, this list of conditions and the following
#     disclaimer in the documentation and/or other materials
#     provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR 'AS IS' AND ANY EXPRESSED
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

SHELL=/bin/bash

ENGINE=xelatex

PDOPTSALL= -f markdown --table-of-contents --toc-depth=2

PDOPTSOTHER=
PDOPTSLATEX=						\
	--template=template.tex 			\
	--biblatex					\
	-V biblio-files=manual.bib			\
	-V papersize=a4paper				\
	-V mainfont='Lucida Bright OT'			\
	-V sansfont='Lucida Sans OT'			\
	-V monofont='Lucida Sans Typewriter OT'		\
	-V documentclass=memoir				\
	--pdf-engine=$(ENGINE)

#
# included md files, order is important!!!
MDFILES=reference-manual.md introduction.md overview.md cloudsync.md \
	reference-head.md reference.md

MDFILESORIG=reference-manual.md introduction.md overview.md cloudsync.md \
        reference-backup.md

manuals: reference-manual.odt reference-manual.epub reference-manual.html reference-manual.pdf

update-ref:
	cafeobj -batch update-reference.cafe

wiki: update-ref
	rm -rf wiki/*.mdwn
	cat reference.md | perl refman2wiki.pl

reference-manual.odt: $(MDFILES) Makefile.in
	pandoc ${PDOPTSALL} ${PDOPTSOTHER} -t odt -s -o reference-manual.odt ${MDFILES}

reference-manual.epub: $(MDFILES) Makefile.in
	pandoc ${PDOPTSALL} ${PDOPTSOTHER} -t epub -s -o reference-manual.epub ${MDFILES}

reference-manual.tex: $(MDFILES) Makefile.in manual.bib template.tex
	pandoc ${PDOPTSALL} ${PDOPTSLATEX} --template=template.tex -t latex -s -o reference-manual.tex ${MDFILES}

reference-manual-orig.tex: $(MDFILESORIG) Makefile.in manual.bib template.tex
	pandoc ${PDOPTSALL} ${PDOPTSLATEX} -t latex -s -o reference-manual-orig.tex ${MDFILESORIG}

reference-manual.html: $(MDFILES) Makefile.in
	pandoc ${PDOPTSALL} ${PDOPTSOTHER} -t html -s -o reference-manual.html ${MDFILES}

reference-manual.bbl: reference-manual.tex manual.bib
	$(ENGINE) reference-manual.tex
	bibtex reference-manual

reference-manual.pdf: reference-manual.tex reference-manual.bbl
	$(ENGINE) reference-manual.tex
	$(ENGINE) reference-manual.tex

all: reference-manual.pdf reference-manual.html

clean:
	rm -f reference-manual-orig.{aux,bbl,bcf,blg,log,out,run.xml,toc}
	rm -f reference-manual-orig-blx.bib
	rm -f reference-manual.{aux,bbl,bcf,blg,log,out,run.xml,toc}
	rm -f reference-manual-blx.bib
	rm -f reference-manual.tex

distclean: clean
	rm -f reference-manual.html

.PHONY: clean distclean