File: Makefile.man2html

package info (click to toggle)
pyhoca-cli 0.5.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 652 kB
  • ctags: 70
  • sloc: python: 690; makefile: 26
file content (16 lines) | stat: -rw-r--r-- 441 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

MAN2HTML_BIN = man2html
MAN2HTML_SRC   = man
MAN2HTML_DEST = .build_man2html/html

man_pages = `cd $(MAN2HTML_SRC) && find * -type f`

all: build

build: build_man2html

build_man2html:
	mkdir -p $(MAN2HTML_DEST)
	for man_page in $(man_pages); do mkdir -p `dirname $(MAN2HTML_DEST)/$$man_page`; done
	for man_page in $(man_pages); do $(MAN2HTML_BIN) -r $(MAN2HTML_SRC)/$$man_page > $(MAN2HTML_DEST)/$$man_page.html; done