X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=doc%2Fexamples%2FMakefile.am;h=5ad70f45d88cbcd2e687fbf069849c29e735c832;hb=a5bae03d59c22e57263b8610b9fed99738303cf0;hp=31bac6d9544ced6ed4244dc8ce4658cb42e1bc1f;hpb=d14301c29dfc8761d54c4a289416d67606682675;p=urcu.git diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am index 31bac6d..5ad70f4 100644 --- a/doc/examples/Makefile.am +++ b/doc/examples/Makefile.am @@ -101,19 +101,42 @@ dist_doc_examples_rculfhash_DATA = \ rculfhash/Makefile.cds_lfht_add_replace \ rculfhash/Makefile.cds_lfht_del \ rculfhash/Makefile.cds_lfht_destroy \ + rculfhash/Makefile.cds_lfht_lookup \ + rculfhash/Makefile.cds_lfht_for_each_entry_duplicate \ rculfhash/cds_lfht_add.c \ rculfhash/cds_lfht_add_unique.c \ rculfhash/cds_lfht_add_replace.c \ rculfhash/cds_lfht_del.c \ - rculfhash/cds_lfht_destroy.c + rculfhash/cds_lfht_destroy.c \ + rculfhash/cds_lfht_lookup.c \ + rculfhash/cds_lfht_for_each_entry_duplicate.c if NO_SHARED # Don't build examples if shared libraries support was explicitly # disabled. else + +SUBDIRS_PROXY = hlist list urcu-flavors wfcqueue rculfqueue \ + wfstack lfstack rculfhash + +# Copies are for VPATH build support. all-local: + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + cp -fR $(srcdir)/dist-files $(builddir); \ + cp -f $(srcdir)/Makefile.examples.template $(builddir); \ + for subdir in $(SUBDIRS_PROXY); do \ + cp -fR $(srcdir)/$$subdir $(builddir); \ + done; \ + fi $(MAKE) -f dist-files/Makefile AM_CPPFLAGS="-I../../../urcu/ -I../../../" AM_LDFLAGS='-L../../../.libs/ -Wl,-rpath="$(PWD)/../../.libs/"' $(AM_MAKEFLAGS) all clean-local: - $(MAKE) -f dist-files/Makefile $(AM_MAKEFLAGS) clean; + $(MAKE) -f dist-files/Makefile $(AM_MAKEFLAGS) clean + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + for subdir in $(SUBDIRS_PROXY); do \ + rm -rf $(builddir)/$$subdir; \ + done; \ + rm -f $(builddir)/Makefile.examples.template; \ + rm -rf $(builddir)/dist-files; \ + fi endif