summaryrefslogtreecommitdiff
path: root/man/html/Makefile.am
blob: bce2f9165830e30064e03168c5ed510bd44e8d21 (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
##----------------------------------------------------------------------------
##       $Id$
##
##       Makefile.am for the ACE `html' man page directory
##----------------------------------------------------------------------------

##
##  Process this file with automake to create Makefile.in
##

## The number in AUTOMAKE_OPTIONS is the minimum required version automake
## needed to process this file.
AUTOMAKE_OPTIONS = 1.4

htmldir = $(pkgdatadir)/html
html_DATA := \
  $(shell echo $(top_builddir)/man/man3/*.3 | xargs -n 1 basename | sed -e 's/\.3/\.html/')

MAINTAINERCLEANFILES = $(html_DATA)

## Only add rule to create ACE.html since it more efficient to make
## man2html create all of the html man pages in one shot.
$(html_DATA):
	@ACE_ROOT=$(top_srcdir) $(top_srcdir)/bin/man2html \
	  $(top_builddir)/man/man3/`echo $@ | sed -e 's/\.html$$/\.3/'` \
	  > /dev/null

## For some reason Automake couldn't automatically copy the HTML man
## pages to the distribution directory so do it manually.
dist-hook:
	(tar cf - ./ACE*.html) | (cd $(distdir); tar xfBp -)