File: Makefile

package info (click to toggle)
gcc-h8300-hms 1%3A3.4.6%2Bdfsg2-4
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 94,508 kB
  • ctags: 79,901
  • sloc: ansic: 627,399; cpp: 89,017; makefile: 24,796; asm: 21,058; sh: 16,616; yacc: 3,740; perl: 718; xml: 692; lex: 587; exp: 298; awk: 223; pascal: 86; lisp: 59; sed: 37
file content (41 lines) | stat: -rw-r--r-- 1,393 bytes parent folder | download | duplicates (10)
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

PWD_COMMAND=$${PWDCMD-pwd}
MAKEINFO=makeinfo
INC=../../../gcc/doc/include

all: documentation.html                  \
     faq/index.txt                       \
     17_intro/confdeps.png               \
     17_intro/porting.html               \
     17_intro/porting-howto.html

# chock full of GNUism, probably
documentation.html: $(wildcard */howto.html)
	sed -n '1,/beginlist/p' $@ > tmp.top
	sed -n '/endlist/,$$p' $@ > tmp.bottom
	echo '  <ul>' > tmp.middle
	for i in [0-9]*/howto.html; do \
	  title=`grep 'h1 ' $$i |\
	  sed 's=.*\(Chapter [[:digit:]]*\):[[:space:]]*\(.*\)</a>.*=\2 (\1)='` ;\
	  awk -v file=$$i -v "title=$$title" -f makedoc.awk $$i >> tmp.middle ;\
	done
	awk -v file=ext/howto.html -v "title=Extensions to the Standard Library"\
	  -f makedoc.awk ext/howto.html >> tmp.middle ;\
	echo '  </ul>' >> tmp.middle
	cat tmp.top tmp.middle tmp.bottom > $@
	rm tmp.top tmp.middle tmp.bottom

faq/index.txt: faq/index.html
	lynx -dump $< | sed "s%file://localhost`${PWD_COMMAND}`%..%" > $@

17_intro/porting.html: 17_intro/porting.texi
	${MAKEINFO} -I ${INC} --html --no-split $< -o $@

# known to work under RH; this can be cleaned up later if needed
17_intro/porting-howto.html: 17_intro/porting-howto.xml
	xltproc -o $@ /usr/share/xml/docbook/xsl-stylesheets-1.48-2/html/docbook.xsl $<

17_intro/confdeps.png: 17_intro/confdeps.dot
	dot -Tpng -o $@ $<

# vim:noet ts=4