X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=doc%2Fexamples%2FMakefile.am;h=1e4ef99ded873ca5c824feb604e807b6df41f4c7;hb=0ee4a237c6848d65d3233edbc1a16051fa6dd027;hp=971eec3eb4ab4ee67043ddb9945af2138994f80a;hpb=9a37727f9dc181b93fbfcb273f59340a66fc056e;p=lttng-ust.git diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am index 971eec3e..1e4ef99d 100644 --- a/doc/examples/Makefile.am +++ b/doc/examples/Makefile.am @@ -43,7 +43,11 @@ if NO_SHARED # disabled. else # Copies are for VPATH build support -SUBDIRS_PROXY = easy-ust demo gen-tp hello-static-lib +SUBDIRS_PROXY = easy-ust demo hello-static-lib + +if BUILD_GEN_TP_EXAMPLES +SUBDIRS_PROXY += gen-tp +endif all-local: @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ @@ -66,7 +70,7 @@ all-local: rel_build_subdir="../"; \ fi; \ for subdir in $(SUBDIRS_PROXY); do \ - (cd $$subdir && $(MAKE) AM_CC="$(CC)" AM_CPPFLAGS="$(CPPFLAGS) -I$$rel_src_subdir$(top_srcdir)/include/ -I$$rel_build_subdir$(top_builddir)/include/" AM_CFLAGS='$(CFLAGS)' AM_LDFLAGS='$(LDFLAGS) -L../../../liblttng-ust/.libs/ -Wl,-rpath="$(PWD)/../../liblttng-ust/.libs/"' LTTNG_GEN_TP_PATH="../../../tools/" $(AM_MAKEFLAGS) all && cd ..) || exit 1; \ + (cd $$subdir && $(MAKE) AM_CC="$(CC)" AM_CPPFLAGS="$(CPPFLAGS) -I$$rel_src_subdir$(top_srcdir)/include/ -I$$rel_build_subdir$(top_builddir)/include/" AM_CFLAGS='$(CFLAGS)' AM_LDFLAGS='$(LDFLAGS) -L../../../liblttng-ust/.libs -Wl,-rpath="$(PWD)/../../liblttng-ust/.libs/" -Wl,-rpath-link="$(PWD)/../../liblttng-ust/.libs/"' LTTNG_GEN_TP_PATH="../../../tools/" $(AM_MAKEFLAGS) all && cd ..) || exit 1; \ done; \ if [ x"$(SUBDIRS_JUL)" != x"" ]; then \ for subdir in $(SUBDIRS_JUL); do \