File: Makefile

package info (click to toggle)
bison-doc 1%3A3.8.2%2Brepack-1
  • links: PTS
  • area: non-free
  • in suites: bookworm, forky, sid, trixie
  • size: 2,320 kB
  • sloc: yacc: 2,433; sh: 723; lex: 294; makefile: 223; cpp: 201; perl: 115
file content (34 lines) | stat: -rw-r--r-- 1,154 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
BISON_TEXI = doc/bison.texi
DESTDIR = $(CURDIR)/debian/tmp

TEXI2PDF = /usr/bin/texi2pdf
INSTALL = /usr/bin/install
CP = /bin/cp
SED = /bin/sed

EXAMPLES = examples/c++/calc++/calc++.cc \
           examples/c++/calc++/driver.cc \
           examples/c++/calc++/driver.hh \
           examples/c++/calc++/parser.yy \
           examples/c++/calc++/scanner.ll \
           examples/c++/simple.yy \
           examples/c/mfcalc/calc.h \
           examples/c/mfcalc/mfcalc.y \
           examples/c/rpcalc/rpcalc.y

all: doc/bison.texi
	$(MAKEINFO) --no-split $^
	$(SED) -i -e 's/image src="figs/image src="\/usr\/share\/doc\/bison-doc\/html\/figs/' bison.info
	$(MAKEINFO) -o html --html $^
	$(TEXI2PDF) -I build-aux $^
	examples/extexi $^ -- $(EXAMPLES)

install:
	$(INSTALL) -d $(DESTDIR)/usr/share/info
	$(CP) bison.info $(DESTDIR)/usr/share/info
	$(INSTALL) -d $(DESTDIR)/usr/share/doc/bison-doc
	$(CP) --parents $(EXAMPLES) $(DESTDIR)/usr/share/doc/bison-doc
	$(CP) -r bison.pdf html $(DESTDIR)/usr/share/doc/bison-doc
	$(INSTALL) -d $(DESTDIR)/usr/share/doc/bison-doc/html/figs
	$(CP) -r doc/figs/*.svg $(DESTDIR)/usr/share/doc/bison-doc/html/figs