File: Makefile

package info (click to toggle)
painintheapt 0.20161206-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 180 kB
  • ctags: 1
  • sloc: python: 200; makefile: 17; sh: 7
file content (15 lines) | stat: -rw-r--r-- 266 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
NAME=painintheapt

all: $(NAME).8 index.html

$(NAME).8: README.rst
	cat $< \
	    | sed -e '0,/^$$/s//:Manual section: 8\n/' \
	          -e '0,/Pain.*/s//$(NAME)/' \
	    | rst2man > $@

index.html: README.rst
	rst2html $< > $@

clean:
	rm -f $(NAME).8 index.html