Debian Codegraph @

debian/patches/01_makefile

raw
1 From: Chuan-kai Lin <[email protected]>
2 Date: Sun, 10 May 2020 10:19:42 -0700
3 Subject: Documentation Makefile
4
5 Forwarded: not-needed
6 ---
7 Makefile | 34 ++++++++++++++++++++++++++++++++++
8 1 file changed, 34 insertions(+)
9 create mode 100644 Makefile
10
11 diff --git a/Makefile b/Makefile
12 new file mode 100644
13 index 0000000..bd94f8a
14 --- /dev/null
15 +++ b/Makefile
16 @@ -0,0 +1,34 @@
17 +BISON_TEXI = doc/bison.texi
18 +DESTDIR = $(CURDIR)/debian/tmp
19 +
20 +TEXI2PDF = /usr/bin/texi2pdf
21 +INSTALL = /usr/bin/install
22 +CP = /bin/cp
23 +SED = /bin/sed
24 +
25 +EXAMPLES = examples/c++/calc++/calc++.cc \
26 + examples/c++/calc++/driver.cc \
27 + examples/c++/calc++/driver.hh \
28 + examples/c++/calc++/parser.yy \
29 + examples/c++/calc++/scanner.ll \
30 + examples/c++/simple.yy \
31 + examples/c/mfcalc/calc.h \
32 + examples/c/mfcalc/mfcalc.y \
33 + examples/c/rpcalc/rpcalc.y
34 +
35 +all: doc/bison.texi
36 + $(MAKEINFO) --no-split $^
37 + $(SED) -i -e 's/image src="figs/image src="\/usr\/share\/doc\/bison-doc\/html\/figs/' bison.info
38 + $(MAKEINFO) -o html --html $^
39 + $(TEXI2PDF) -I build-aux $^
40 + examples/extexi $^ -- $(EXAMPLES)
41 +
42 +install:
43 + $(INSTALL) -d $(DESTDIR)/usr/share/info
44 + $(CP) bison.info $(DESTDIR)/usr/share/info
45 + $(INSTALL) -d $(DESTDIR)/usr/share/doc/bison-doc
46 + $(CP) --parents $(EXAMPLES) $(DESTDIR)/usr/share/doc/bison-doc
47 + $(CP) -r bison.pdf html $(DESTDIR)/usr/share/doc/bison-doc
48 + $(INSTALL) -d $(DESTDIR)/usr/share/doc/bison-doc/html/figs
49 + $(CP) -r doc/figs/*.svg $(DESTDIR)/usr/share/doc/bison-doc/html/figs
50 +