]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
automake: Fix out-of-tree build. 5238/head
authorKrzysztof Kosiński <krzysztof.kosinski@intel.com>
Wed, 15 Jul 2015 12:44:42 +0000 (14:44 +0200)
committerKrzysztof Kosiński <krzysztof.kosinski@intel.com>
Thu, 16 Jul 2015 08:32:34 +0000 (10:32 +0200)
Corrects minor Automake errors which prevented Ceph from building
when configure was invoked from a different directory than
the toplevel source directory.

Signed-off-by: Krzysztof Kosiński <krzysztof.kosinski@intel.com>
man/Makefile.am
src/Makefile-client.am
src/ceph-detect-init/Makefile.am
src/rgw/Makefile.am
src/tracing/Makefile.am

index 7d1159edff0c36d0a73c1cb28ad7273bf1fde211..eb8edcbad7d254e6d35f2f9afb3e211adbc05ecc 100644 (file)
@@ -21,7 +21,7 @@ $(dist_man_MANS): sphinx-build.stamp
 # in a tree populated from dist tarball, the $(top_srcdir)/doc is not included
 sphinx-build.stamp:
        if [ -d $(top_srcdir)/doc/man ] ; then \
-               ${SPHINX_BUILD} -b man -d doctrees -c . $(top_srcdir)/doc/man $(top_builddir)/man; \
+               ${SPHINX_BUILD} -b man -d doctrees -c $(top_srcdir)/man $(top_srcdir)/doc/man $(top_builddir)/man; \
        fi
 
 clean-local:
index 6e7182d46d9327b10b8f568926dc3a79eccb7024..d68d70db3185abcd4c0d2414b111dfa7da5f454f 100644 (file)
@@ -20,9 +20,9 @@ bin_PROGRAMS += ceph-syn
 ceph: ceph.in ./ceph_ver.h Makefile
        rm -f $@ $@.tmp
        echo "#!/usr/bin/env python" >$@.tmp
-       grep "#define CEPH_GIT_NICE_VER" ./ceph_ver.h | \
+       grep "#define CEPH_GIT_NICE_VER" $(srcdir)/ceph_ver.h | \
                sed -e 's/#define \(.*VER\) /\1=/' >>$@.tmp
-       grep "#define CEPH_GIT_VER" ./ceph_ver.h | \
+       grep "#define CEPH_GIT_VER" $(srcdir)/ceph_ver.h | \
          sed -e 's/#define \(.*VER\) /\1=/' -e 's/=\(.*\)$$/="\1"/' >>$@.tmp
        cat $(srcdir)/$@.in >>$@.tmp
        chmod a+x $@.tmp
index 3e5ad03f73277cb803488a2a4157af134d6496a8..a2c885aae697aeb92fd5c8d27136724ee9f1b910 100644 (file)
@@ -54,13 +54,13 @@ EXTRA_DIST += \
        ceph-detect-init/tox.ini
 
 all-local::
-       cd ceph-detect-init ; python setup.py build
+       cd $(srcdir)/ceph-detect-init ; python setup.py build
 
 clean-local::
-       cd ceph-detect-init ; python setup.py clean ; rm -fr wheelhouse .tox build .coverage *.egg-info
+       cd $(srcdir)/ceph-detect-init ; python setup.py clean ; rm -fr wheelhouse .tox build .coverage *.egg-info
 
 install-data-local::
-       cd ceph-detect-init ; \
+       cd $(srcdir)/ceph-detect-init ; \
        if test "$(DESTDIR)" ; then \
                if lsb_release -si | grep --quiet 'Ubuntu\|Debian\|Devuan' ; then \
                        options=--install-layout=deb ; \
index 7620d73b053d1caab4ca22dd6d77a4a9e29c8c99..f3dd92aec99a3701f3b8ad6e042b981306909729 100644 (file)
@@ -65,7 +65,7 @@ LIBRGW_DEPS += \
        -lfcgi \
        -ldl
 
-CIVETWEB_INCLUDE = --include civetweb/include/civetweb_conf.h
+CIVETWEB_INCLUDE = --include $(srcdir)/civetweb/include/civetweb_conf.h
 
 libcivetweb_la_SOURCES =  \
        rgw/rgw_civetweb.cc \
@@ -73,7 +73,7 @@ libcivetweb_la_SOURCES =  \
        civetweb/src/civetweb.c
 
 libcivetweb_la_CXXFLAGS = ${CIVETWEB_INCLUDE} -Woverloaded-virtual ${AM_CXXFLAGS}
-libcivetweb_la_CFLAGS = -Icivetweb/include ${CIVETWEB_INCLUDE}
+libcivetweb_la_CFLAGS = -I$(srcdir)/civetweb/include ${CIVETWEB_INCLUDE}
 
 noinst_LTLIBRARIES += libcivetweb.la
 
index 16d300ec1dbbb5f426be2a31d7c3f227f70e1d73..52aad5347eccb932feb861133e0216bf467ccc35 100644 (file)
@@ -24,6 +24,7 @@ nodist_libosd_tp_la_SOURCES = \
 endif
 libosd_tp_la_LIBADD = -llttng-ust -ldl
 libosd_tp_la_CPPFLAGS = -DTRACEPOINT_PROBE_DYNAMIC_LINKAGE
+libosd_tp_la_CFLAGS = -I$(top_srcdir)/src $(AM_CFLAGS)
 libosd_tp_la_LDFLAGS =
 
 if WITH_LTTNG