Merge pull request #83 from pbailis/master
[voldemort/jeffpc.git] / clients / cpp / Makefile.am
blob4f7839ca10a6a8ec9aa405753a082c5bb8a7d528
2 #   Voldemort C client Makefile.am
3 #   (c) 2009 Webroot Software, Inc.
4
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 # use this file except in compliance with the License. You may obtain a copy of
7 # the License at
8
9 # http://www.apache.org/licenses/LICENSE-2.0
10
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 # License for the specific language governing permissions and limitations under
15 # the License.
17 # Process this file with automake to produce a Makefile.in
19 SUBDIRS = src utils test
21 library_includedir=$(includedir)/$(PACKAGE)
22 library_include_HEADERS = \
23         include/voldemort/ClientConfig.h \
24         include/voldemort/InconsistentDataException.h \
25         include/voldemort/InconsistencyResolver.h \
26         include/voldemort/InsufficientOperationalNodesException.h \
27         include/voldemort/InvalidMetadataException.h \
28         include/voldemort/ObsoleteVersionException.h \
29         include/voldemort/PersistenceFailureException.h \
30         include/voldemort/BootstrapFailureException.h \
31         include/voldemort/SocketStoreClientFactory.h \
32         include/voldemort/StoreClientFactory.h \
33         include/voldemort/StoreClient.h \
34         include/voldemort/Store.h \
35         include/voldemort/StoreOperationFailureException.h \
36         include/voldemort/UnreachableStoreException.h \
37         include/voldemort/VersionedValue.h \
38         include/voldemort/Version.h \
39         include/voldemort/VoldemortException.h \
40         include/voldemort/voldemort.h
42 pkgconfigdir = $(libdir)/pkgconfig
43 pkgconfig_DATA = voldemort.pc
45 # make a binary tgz package
46 tgz:
47         rm -rf "${top_builddir}/tgz-tmp"
48         mkdir "${top_builddir}/tgz-tmp"
49         make ${tgztarget} DESTDIR="`cd ${top_builddir}/tgz-tmp; pwd`"
50         test -z "${extratar}" || tar -xC "${top_builddir}/tgz-tmp" -f "${extratar}"
51         (cd "${top_builddir}/tgz-tmp"; $(AMTAR) cf - --owner 0 --group 0 usr | GZIP=$(GZIP_ENV) $(GZIP_BIN) -c >../${pkgtgz})
52         rm -rf "${top_builddir}/tgz-tmp"
54 if HAVE_DOXYGEN
55   noinst_DATA = \
56         doc/html
57 endif
59 doc/html: $(library_include_HEADERS) doc/Doxyfile 
60         cd doc && ${DOXYGEN} Doxyfile
61 doc: doc/html
62 doc/html-internal: clean-doc-internal $(library_include_HEADERS) doc/Doxyfile-internal
63         cd doc && ${DOXYGEN} Doxyfile-internal
64 doc-internal: doc/html-internal
65 install-data-local: doc
66         @$(NORMAL_INSTALL)
67         test -z "${DESTDIR}/${docdir}/html" || $(mkdir_p) "${DESTDIR}/${docdir}/html"
68         for i in `ls $(srcdir)/doc/html`; do \
69           $(INSTALL) -m 0644 $(srcdir)/doc/html/$$i "${DESTDIR}/${docdir}/html"; \
70         done
71 uninstall-local: 
72         @$(NORMAL_UNINSTALL)
73         rm -rf "${DESTDIR}/${docdir}/html"
75 clean-doc:
76         rm -rf doc/html doc/latex
77 clean-doc-internal:
78         rm -rf doc/html-internal
79 clean-local: clean-doc clean-doc-internal
80         rm -f *.rpm