File: Makefile

package info (click to toggle)
writeboost 1.20170616-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 96 kB
  • sloc: sh: 146; makefile: 20
file content (26 lines) | stat: -rwxr-xr-x 614 bytes parent folder | download | duplicates (5)
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
#!/usr/bin/make -f
# -*- makefile -*-

default: all
all: man/writeboost.8

man/writeboost.8:
	pod2man -s8 --stderr --utf8 sbin/writeboost $@ || rm -fv $@

clean:
	rm -fv man/writeboost.8

#install: all
#	install --preserve-timestamps --verbose

.PHONY: test test_man
test: test_man
	sh -n sbin/writeboost

test_man: man/writeboost.8
	@for M in writeboost.8 writeboosttab.5; do \
            echo "Checking $$M" ;\
            lexgrog "man/$$M" || break  ;\
            W=$$(man --warnings -E UTF-8 -l -Tutf8 -Z "man/$$M" 2>&1 >>/dev/null) ;\
            if [ -n "$$W" ]; then echo "$$W"; break; fi ;\
        done