File: Makefile.doc

package info (click to toggle)
libcpuset 1.0-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,108 kB
  • ctags: 424
  • sloc: ansic: 2,553; sh: 786; makefile: 58
file content (24 lines) | stat: -rw-r--r-- 813 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
all: libcpuset.pdf libcpuset.txt
	: done

libcpuset.txt: libcpuset.html
	lynx -width=92 -dump libcpuset.html | \
	  sed -e '/\[[1-9][0-9]*\]/s///g' -e '/^References$$/Q' > libcpuset.txt

libcpuset.pdf: libcpuset.tex
	patch -o libcpuset.out.tex -p1 < libcpuset.patch
	sed -i 's;LINEBREAK;\\\\;g' libcpuset.out.tex
	sed -i 's;LINEBREAK;<br>;g' libcpuset.html
	sed -i '/link rel="stylesheet" href="default.css"/d' libcpuset.html
	sed -i 's;LaTeX;\\LaTeX;g' libcpuset.out.tex
	sed -i 's;(c);\\copyright;g' libcpuset.out.tex
	# run pdflatex twice to redo bookmarks
	pdflatex -interaction=batchmode libcpuset.out.tex || true
	pdflatex -interaction=batchmode libcpuset.out.tex || true
	mv libcpuset.out.pdf libcpuset.pdf

clean:
	rm -f libcpuset.out.{aux,log,out,tex}

clobber: clean
	rm -f libcpuset.{html,pdf,tex,txt}