summaryrefslogtreecommitdiff
path: root/Makefile
blob: 7cacd7e06e6d90936f455b4d300e79a7e5a65cd5 (plain)
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
27
28
29
30
31
32
BINS=isutf8 sponge ifdata
PERLSCRIPTS=vidir vipe ts combine
MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifdata.1
CFLAGS=-O2 -g -Wall

all: $(BINS) $(MANS)

clean:
	rm -f $(BINS) $(MANS)

install:
	mkdir -p $(PREFIX)/usr/bin
	install -s $(BINS) $(PREFIX)/usr/bin
	install $(PERLSCRIPTS) $(PREFIX)/usr/bin
	
	mkdir -p $(PREFIX)/usr/share/man/man1
	install $(MANS) $(PREFIX)/usr/share/man/man1

check: isutf8
	./check-isutf8

isutf8.1: isutf8.docbook
	docbook2x-man isutf8.docbook

sponge.1: sponge.docbook
	docbook2x-man sponge.docbook

ifdata.1: ifdata.docbook
	docbook2x-man ifdata.docbook

%.1: %
	pod2man --center=" " --release="moreutils" $< > $@;