Skip to content

Commit

Permalink
automake: Fix out-of-tree build.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
krkosinski committed Jul 16, 2015
1 parent 66dcbae commit 6ed554c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion man/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions src/Makefile-client.am
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ bin_PROGRAMS += ceph-syn
ceph: ceph.in ./ceph_ver.h Makefile
rm -f $@ [email protected]
echo "#!/usr/bin/env python" >[email protected]
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=/' >>[email protected]
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"/' >>[email protected]
cat $(srcdir)/[email protected] >>[email protected]
chmod a+x [email protected]
Expand Down
6 changes: 3 additions & 3 deletions src/ceph-detect-init/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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 ; \
Expand Down
4 changes: 2 additions & 2 deletions src/rgw/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ 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 \
rgw/rgw_civetweb_log.cc \
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

Expand Down
1 change: 1 addition & 0 deletions src/tracing/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ed554c

Please sign in to comment.