freebsd patch from Enrico Tassi
[moreutils.git] / Makefile
blob377121d56b79b9fbc42cabe86f4c3bae0d44bd2f
1 BINS=isutf8 ifdata ifne pee sponge mispipe lckdo parallel
2 PERLSCRIPTS=vidir vipe ts combine zrun
3 MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifdata.1 ifne.1 pee.1 zrun.1 mispipe.1 lckdo.1 parallel.1
4 CFLAGS=-O2 -g -Wall
5 INSTALL_BIN?=install -s
6 PREFIX=/usr
8 DOCBOOK2XMAN=docbook2x-man
10 all: $(BINS) $(MANS)
12 clean:
13 rm -f $(BINS) $(MANS)
15 install:
16 mkdir -p $(DESTDIR)$(PREFIX)/bin
17 $(INSTALL_BIN) $(BINS) $(DESTDIR)$(PREFIX)/bin
18 install $(PERLSCRIPTS) $(DESTDIR)$(PREFIX)/bin
20 mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
21 install $(MANS) $(DESTDIR)$(PREFIX)/share/man/man1
23 check: isutf8
24 ./check-isutf8
26 isutf8.1: isutf8.docbook
27 $(DOCBOOK2XMAN) $<
29 ifdata.1: ifdata.docbook
30 $(DOCBOOK2XMAN) $<
32 ifne.1: ifne.docbook
33 $(DOCBOOK2XMAN) $<
35 pee.1: pee.docbook
36 $(DOCBOOK2XMAN) $<
38 sponge.1: sponge.docbook
39 $(DOCBOOK2XMAN) $<
41 mispipe.1: mispipe.docbook
42 $(DOCBOOK2XMAN) $<
44 lckdo.1: lckdo.docbook
45 $(DOCBOOK2XMAN) $<
47 parallel.1: parallel.docbook
48 $(DOCBOOK2XMAN) $<
50 %.1: %
51 pod2man --center=" " --release="moreutils" $< > $@;