Upgrade to 1.18.1
[platform/upstream/c-ares.git] / Makefile.am
1 AUTOMAKE_OPTIONS = foreign nostdinc 1.9.6
2 ACLOCAL_AMFLAGS = -I m4 --install
3
4 MSVCFILES = msvc_ver.inc buildconf.bat
5
6 # adig and ahost are just sample programs and thus not mentioned with the
7 # regular sources and headers
8 EXTRA_DIST = AUTHORS CHANGES README.cares $(man_MANS) RELEASE-NOTES     \
9  c-ares-config.cmake.in libcares.pc.cmake libcares.pc.in buildconf get_ver.awk \
10  maketgz TODO README.msvc $(MSVCFILES) INSTALL.md README.md LICENSE.md \
11  CMakeLists.txt Makefile.dj Makefile.m32 Makefile.netware Makefile.msvc \
12  Makefile.Watcom AUTHORS CONTRIBUTING.md SECURITY.md TODO
13
14
15 CLEANFILES = $(PDFPAGES) $(HTMLPAGES)
16
17 DISTCLEANFILES = include/ares_build.h
18
19 DIST_SUBDIRS = include src test docs
20
21 SUBDIRS = @BUILD_SUBDIRS@
22
23 pkgconfigdir = $(libdir)/pkgconfig
24 pkgconfig_DATA = libcares.pc
25
26 # where to install the c-ares headers
27 libcares_ladir = $(includedir)
28
29
30 # Make files named *.dist replace the file without .dist extension
31 dist-hook:
32         find $(distdir) -name "*.dist" -exec rm {} \;
33         (distit=`find $(srcdir) -name "*.dist"`; \
34         for file in $$distit; do \
35           strip=`echo $$file | sed -e s/^$(srcdir)// -e s/\.dist//`; \
36           cp $$file $(distdir)$$strip; \
37         done)