X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=doc%2Fexamples%2FMakefile.am;h=25d34f3b881096841191b5bcce47756cda27551d;hb=a8ffd975ecb26f318ee71afe7ad980e4910d49db;hp=6bb13a7fa7e2b13c3dbcc0c833bf5152f658e915;hpb=980818a30f3a348c9a0f851e151cd248c2e52de1;p=lttng-ust.git diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am index 6bb13a7f..25d34f3b 100644 --- a/doc/examples/Makefile.am +++ b/doc/examples/Makefile.am @@ -30,19 +30,19 @@ dist_doc_examples_hello_static_lib_DATA = hello-static-lib/Makefile \ hello-static-lib/ust_tests_hello.h \ hello-static-lib/tp.c -#if NO_SHARED -## Don't build examples if shared libraries support was explicitly -## disabled. -#else -#SUBDIRS_PROXY = easy-ust demo gen-tp hello-static-lib -# -#all-local: -# for subdir in $(SUBDIRS_PROXY); do \ -# cd $$subdir && $(MAKE) AM_CPPFLAGS="-I../../../include/" AM_LDFLAGS='-L../../../liblttng-ust/.libs/ -Wl,-rpath="$(PWD)/../../liblttng-ust/.libs/"' LTTNG_GEN_TP_PATH="../../tools/" $(AM_MAKEFLAGS) all; cd ..; \ -# done -# -#clean-local: -# for subdir in $(SUBDIRS_PROXY); do \ -# cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) clean; cd ..; \ -# done -#endif +if NO_SHARED +# Don't build examples if shared libraries support was explicitly +# disabled. +else +SUBDIRS_PROXY = easy-ust demo gen-tp hello-static-lib + +all-local: + for subdir in $(SUBDIRS_PROXY); do \ + cd $$subdir && $(MAKE) AM_CPPFLAGS="-I../../../include/" AM_LDFLAGS='-L../../../liblttng-ust/.libs/ -Wl,-rpath="$(PWD)/../../liblttng-ust/.libs/"' LTTNG_GEN_TP_PATH="../../tools/" $(AM_MAKEFLAGS) all; cd ..; \ + done + +clean-local: + for subdir in $(SUBDIRS_PROXY); do \ + cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) clean; cd ..; \ + done +endif