summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/examples/Makefile.am3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/examples/Makefile.am b/cpp/examples/Makefile.am
index 9bd8376644..1e0693ef6e 100644
--- a/cpp/examples/Makefile.am
+++ b/cpp/examples/Makefile.am
@@ -20,12 +20,15 @@ nobase_pkgdata_DATA= \
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.
clean:
cd examples; $(MAKE) clean
+abs_srcdir=@abs_srcdir@
+
# 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