X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=doc%2Fexamples%2FMakefile.am;h=0d0c0212a918ca0b8d64f459af2ebee0924635fa;hp=646213bceb3fd3ce1346719c2343e1867d08dc0e;hb=b45f263b7f87f8f0ce1e6659021688a55595f701;hpb=2f49a496a4d7d3d4cd1b8d8323f907114bf2f3c8 diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am index 646213b..0d0c021 100644 --- a/doc/examples/Makefile.am +++ b/doc/examples/Makefile.am @@ -1,17 +1,24 @@ -if NO_SHARED -# Don't build examples if shared libraries support was explicitly -# disabled. -else -SUBDIRS = qsbr-minimal - doc_examplesdir = ${docdir}/examples doc_examples_qsbr_minimaldir = ${doc_examplesdir}/qsbr-minimal -doc_examples_qsbr_minimal_DATA = \ +dist_doc_examples_qsbr_minimal_DATA = \ qsbr-minimal/Makefile \ qsbr-minimal/qsbr-minimal.c -BUILD_EXAMPLES_FROM_TREE = 1 -export +if NO_SHARED +# Don't build examples if shared libraries support was explicitly +# disabled. +else +SUBDIRS_PROXY = qsbr-minimal + +all-local: + for subdir in $(SUBDIRS_PROXY); do \ + cd $$subdir && $(MAKE) AM_CPPFLAGS="-I../../../urcu/ -I../../../" AM_LDFLAGS='-L../../../.libs/ -Wl,-rpath="$(PWD)/../../.libs/"' $(AM_MAKEFLAGS) all; cd ..; \ + done + +clean-local: + for subdir in $(SUBDIRS_PROXY); do \ + cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) clean; cd ..; \ + done endif