Merged with fix: etx_ff metrix
[olsrd.git] / files / Makefile
1 MANS += olsrd.8.gz
2 MANS += olsrd.conf.5.gz
3 MANS += olsr_switch.8.gz
4
5 # Requires 'apt-get install docbook2x docbook-xml'
6 $(MANS): olsrd-manpages.xml
7         docbook2x-man --solinks $^
8         gzip -f $(patsubst %.gz,%, $(MANS))
9
10 # Requires 'apt-get install docbook-utils'
11 index.html: olsrd-manpages.xml
12         docbook2html -V $$(echo "(define\r%html-header-tags%\r'((\"META\"(\"HTTP-EQUIV\"\"Content-Type\")(\"CONTENT\"\"text/html;charset=utf-8\"))))") -V '%use-id-as-filename%'  $^
13
14 clean:
15         rm -fv $(MANS)
16         rm -fv $(patsubst %.gz,%, $(MANS))
17         rm -fv index.html
18         rm -fv $(patsubst %_gz,%.html, $(subst .,_,$(MANS)))