X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=doc%2Fexamples%2FMakefile.am;h=705e817d632ba4e1eb8d6e1f7189f322853ad1f8;hp=31bac6d9544ced6ed4244dc8ce4658cb42e1bc1f;hb=d251e6454df8976cd28c01536e0e41f02f5de072;hpb=d14301c29dfc8761d54c4a289416d67606682675 diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am index 31bac6d..705e817 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: - $(MAKE) -f dist-files/Makefile AM_CPPFLAGS="-I../../../urcu/ -I../../../" AM_LDFLAGS='-L../../../.libs/ -Wl,-rpath="$(PWD)/../../.libs/"' $(AM_MAKEFLAGS) all + @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_CC="$(CC)" AM_CPPFLAGS="$(CPPFLAGS) -I../../../urcu/ -I../../../" AM_CFLAGS='$(CFLAGS)' AM_LDFLAGS='$(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