Cleanup: doc/examples makefile
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 21 Jul 2013 21:57:31 +0000 (17:57 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 21 Jul 2013 21:57:31 +0000 (17:57 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
doc/examples/Makefile.am

index 72fed25e9fbb2038ac585ff61f6d8cc673af378e..5ad70f45d88cbcd2e687fbf069849c29e735c832 100644 (file)
@@ -115,34 +115,28 @@ 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 -fR $(srcdir)/hlist $(builddir); \
-               cp -fR $(srcdir)/list $(builddir); \
-               cp -fR $(srcdir)/urcu-flavors $(builddir); \
-               cp -fR $(srcdir)/wfcqueue $(builddir); \
-               cp -fR $(srcdir)/rculfqueue $(builddir); \
-               cp -fR $(srcdir)/wfstack $(builddir); \
-               cp -fR $(srcdir)/lfstack $(builddir); \
-               cp -fR $(srcdir)/rculfhash $(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
        @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)/hlist; \
-               rm -rf $(builddir)/list; \
-               rm -rf $(builddir)/urcu-flavors; \
-               rm -rf $(builddir)/wfcqueue; \
-               rm -rf $(builddir)/rculfqueue; \
-               rm -rf $(builddir)/wfstack; \
-               rm -rf $(builddir)/lfstack; \
-               rm -rf $(builddir)/rculfhash; \
                rm -rf $(builddir)/dist-files; \
        fi
 endif
This page took 0.026624 seconds and 4 git commands to generate.