automake: handle doc/ man-pages
[dahdi/tools.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 LEGACY_MAKE     = \
4          $(MAKE) -f $(srcdir)/Makefile.legacy \
5                 top_srcdir=$(top_srcdir) \
6                 srcdir=$(srcdir)
7
8 SUBDIRS = xpp doc
9
10 if PPPD
11 SUBDIRS += ppp
12 endif
13
14 all-local:
15         $(LEGACY_MAKE)  all
16
17 clean-local:
18         $(LEGACY_MAKE) clean
19
20 install-exec-hook:
21         $(LEGACY_MAKE) install
22
23 dist:
24         $(LEGACY_MAKE) dist
25
26 docs config:
27         $(LEGACY_MAKE)  $@
28
29 DISTCLEANFILES  = makeopts config.log config.status .*.d
30
31 MAINTAINERCLEANFILES    = \
32                 m4/libtool.m4 \
33                 m4/ltoptions.m4 \
34                 m4/ltsugar.m4 \
35                 m4/ltversion.m4 \
36                 m4/lt~obsolete.m4 \
37                 #
38
39 .PHONY: docs config