From d83cbdc60dc6c76b0b6de0a11a603f5517f6e65b Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 4 Dec 2007 22:33:34 +0000 Subject: examples/Makefile.am: - installcheck target builds installed examples. - Automatically run by rpmbuild and distcheck targets. rubygen/generate: fixed packaging error in rubygen.mk src/Makefile.am: fixed packaging error. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@601125 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/examples/Makefile.am | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'cpp/examples') diff --git a/cpp/examples/Makefile.am b/cpp/examples/Makefile.am index 5915e0a282..21b799d17e 100644 --- a/cpp/examples/Makefile.am +++ b/cpp/examples/Makefile.am @@ -24,15 +24,13 @@ EXTRA_DIST=$(nobase_pkgdata_DATA) # Note: we don't use normal automake SUBDIRS because the example # makefiles don't understand all the recursive automake targets. -# -src=../../$(top_srcdir)/src -bld=../../$(top_builddir)/src -EXAMPLE_FLAGS=-I$(src) -I$(src)/gen -I$(bld)/gen -L$(bld)/.libs - -all: - cd examples; $(MAKE) CXX="$(CXX)" CXXFLAGS="$(EXAMPLE_FLAGS)" all clean: cd examples; $(MAKE) clean - +# Build the installed examples, then clean up to avoid rpmbuild warnings. +EXAMPLE_FLAGS=-I$(DESTDIR)$(includedir) -L$(DESTDIR)$(libdir) -Wl,-rpath,$(DESTDIR)$(libdir) +EXAMPLE_DIR=$(DESTDIR)$(pkgdatadir)/examples +installcheck-local: + cd $(EXAMPLE_DIR) && $(MAKE) CXX="$(CXX)" CXXFLAGS="$(EXAMPLE_FLAGS)" all + cd $(EXAMPLE_DIR) && $(MAKE) clean -- cgit v1.2.1