File: Makefile

package info (click to toggle)
grml2usb 0.18.5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 640 kB
  • sloc: python: 1,403; sh: 328; asm: 230; makefile: 75
file content (32 lines) | stat: -rw-r--r-- 956 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
25
26
27
28
29
30
31
32
all: doc

doc: doc_man doc_html

doc_html: html-stamp

html-stamp: mbr.8.txt
	asciidoc -b xhtml11 -a icons mbr.8.txt
	touch html-stamp

doc_man: man-stamp

man-stamp: mbr.8.txt
	asciidoc -d manpage -b docbook mbr.8.txt
	sed -i 's/<emphasis role="strong">/<emphasis role="bold">/' mbr.8.xml
	xsltproc --novalid --nonet /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl mbr.8.xml
	# ugly hack to avoid duplicate empty lines in manpage
	# notice: docbook-xsl 1.71.0.dfsg.1-1 is broken! make sure you use 1.68.1.dfsg.1-0.2!
	cp mbr.8 mbr.8.tmp
	uniq mbr.8.tmp > mbr.8
	# ugly hack to avoid '.sp' at the end of a sentence or paragraph:
	sed -i 's/\.sp//' mbr.8
	rm mbr.8.tmp
	touch man-stamp

#online: all
#	scp mbr.8.html grml:/var/www/grml/mbr/index.html
#	scp images/icons/*          grml:/var/www/grml/mbr/images/icons/
#	scp images/screenshot.png   grml:/var/www/grml/mbr/images/

clean:
	rm -rf mbr.8.html mbr.8.xml mbr.8 html-stamp man-stamp