Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 52 lines (35 sloc) 1.101 kb
5d3e72a @gebi changed build system, added manpage
gebi authored
1 install_ = install
2 name_ = grml-shlib
3
4 etc = ${DESTDIR}/etc/
5 usr = ${DESTDIR}/usr
6 usrbin = $(usr)/bin
7 usrsbin = $(usr)/sbin
8 usrshare = $(usr)/share/$(name_)
9 usrdoc = $(usr)/share/doc/$(name_)
10 man1 = $(usr)/share/man/man1/
11 man3 = $(usr)/share/man/man3/
12 man8 = $(usr)/share/man/man8/
13
14
15 %.html : %.txt ;
16 asciidoc -b xhtml11 $^
17
18 %.gz : %.txt ;
19 asciidoc -d manpage -b docbook $^
20 xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl `echo $^ |sed -e 's/.txt/.xml/'`
21 gzip -f --best `echo $^ |sed -e 's/.txt//'`
22
23
24 all: doc
25
26 doc: doc_man doc_html
27
28 doc_html: $(name_).3.html
29 grml-shlib.3.html: $(name_).3.txt
30
31 doc_man: $(name_).3.gz TODO.gz
32 grml-shlib.3.gz: $(name_).3.txt
33
34 TODO.gz: TODO
35 gzip --best -c $^ >$@
36
37
38 install: all
39 $(install_) -d -m 755 $(usrdoc)
9639481 @gebi Makefile fix
gebi authored
40 $(install_) -m 644 $(name_).3.html $(usrdoc)
5d3e72a @gebi changed build system, added manpage
gebi authored
41 $(install_) -m 644 TODO.gz $(usrdoc)
42
43 $(install_) -d -m 755 $(man3)
9639481 @gebi Makefile fix
gebi authored
44 $(install_) -m 644 $(name_).3.gz $(man3)
5d3e72a @gebi changed build system, added manpage
gebi authored
45
9639481 @gebi Makefile fix
gebi authored
46 $(install_) -m 755 -d ${DESTDIR}/etc/grml
47 $(install_) -m 755 sh-lib ${DESTDIR}/etc/grml
5d3e72a @gebi changed build system, added manpage
gebi authored
48
49 clean:
9639481 @gebi Makefile fix
gebi authored
50 rm -rf $(name_).3.html $(name_).3.xml $(name_).3 $(name_).3.gz TODO.gz
5d3e72a @gebi changed build system, added manpage
gebi authored
51
Something went wrong with that request. Please try again.