2 # Voldemort C client Makefile.am
3 # (c) 2009 Webroot Software, Inc.
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
9 # http://www.apache.org/licenses/LICENSE-2.0
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
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
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"
59 doc/html: $(library_include_HEADERS) doc/Doxyfile
60 cd doc && ${DOXYGEN} Doxyfile
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
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"; \
73 rm -rf "${DESTDIR}/${docdir}/html"
76 rm -rf doc/html doc/latex
78 rm -rf doc/html-internal
79 clean-local: clean-doc clean-doc-internal