1 BINS
=isutf8 ifdata ifne pee sponge mispipe lckdo parallel errno
2 PERLSCRIPTS
=vidir vipe ts combine zrun chronic
3 MANS
=sponge
.1 vidir
.1 vipe
.1 isutf8.1 ts
.1 combine
.1 ifdata
.1 ifne
.1 pee
.1 zrun
.1 chronic
.1 mispipe
.1 lckdo
.1 parallel
.1 errno
.1
5 INSTALL_BIN?
=install -s
8 DOCBOOK2XMAN
=xsltproc
--param man.authors.section.enabled
0 /usr
/share
/xml
/docbook
/stylesheet
/docbook-xsl
/manpages
/docbook.xsl
13 rm -f
$(BINS
) $(MANS
) dump.c errnos.h errno.o
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
27 xmllint
--noout
--valid
$<
32 echo
'#include <errno.h>' > dump.c
33 $(CC
) -E
-dD dump.c | awk
'/^#define E/ { printf "{\"%s\",%s},\n", $$2, $$2 }' > errnos.h
36 errno
.1: errno.docbook
40 pod2man
--center
=" " --release
="moreutils" $< > $@
;