File: Makefile

package info (click to toggle)
bird 1.4.5-1+deb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 4,284 kB
  • ctags: 5,123
  • sloc: ansic: 35,995; sh: 3,215; perl: 2,083; lex: 677; makefile: 225; xml: 204; sed: 13
file content (50 lines) | stat: -rw-r--r-- 750 bytes parent folder | download | duplicates (3)
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
root-rel=../
dir-name=doc

ifneq ($(wildcard ../Rules),)
include ../Rules
else
srcdir=$(shell cd $(root-rel) ; pwd)
srcdir_abs=$(srcdir)
endif

# Force rebuilds
.PHONY: prog.sgml bird.sgml

docs: progdocs userdocs
progdocs: prog.html prog.pdf
userdocs: bird.html bird.pdf

prog.sgml:
	$(srcdir)/tools/progdoc $(srcdir_abs)

%.html: %.sgml
	./sgml2html $<

%.dvi: %.tex
	latex $<
	latex $<

%.pdf: %.tex
	pdflatex $<
	pdflatex $<

%.ps: %.dvi
	dvips -D600 -ta4 -o $@ $<

%.tex: %.sgml
	./sgml2latex --output=tex $<

%.txt: %.sgml
	./sgml2txt $<

progspell: prog.sgml
	sed -f prog-spell.sed <prog.sgml >prog.spell
	ispell prog.spell

clean:
	rm -f *.tex *.dvi *.log *.txt *.aux *.toc *.spell
	rm -f prog.sgml

distclean: clean
	rm -f *.html *.ps *.pdf