1aclocaldir=$(datadir)/aclocal
2dist_aclocal_DATA=pth.m4
3dist_include_HEADERS=pth.h
4bin_SCRIPTS=pth-config
5man1_MANS=pth-config.1
6EXTRA_DIST=pth-config.pod pth-config.1
7
8
9SED         = sed
10POD2MAN     = pod2man
11
12S           = $(srcdir)/
13
14_MANPAGE = \
15	echo "Formatting $${BASENAME}.pod into $${BASENAME}.$${SEC} via $(POD2MAN)"; \
16	$(POD2MAN) --section=$${SEC} --center="$${ONELINE}" \
17	           --release="$(PACKAGE_VERSION)" --date="$${NAME} $(PACKAGE_VERSION)" $(S)$${BASENAME}.pod |\
18	$(SED) -e "s;PTH_VERSION_STR;$(PTH_VERSION_STR);" >$${BASENAME}.$${SEC}
19
20#   build the manual pages
21$(S)pth-config.1: $(S)pth-config.pod
22	@BASENAME="pth-config"; SEC=1; \
23	NAME="pthsem"; ONELINE="pthsem Portable Threads"; \
24	$(_MANPAGE)
25
26