doc/examples: add dist toplevel makefile
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 22 Jun 2013 18:39:12 +0000 (14:39 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 22 Jun 2013 18:39:12 +0000 (14:39 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
doc/examples/Makefile.am
doc/examples/dist-files/Makefile [new file with mode: 0644]

index e6d68702370b8e09cbeae573d6336111560df9e1..f720e487d68a79173a3da264108b34526b8cc0f3 100644 (file)
@@ -14,6 +14,7 @@ dist_doc_examples_urcu_flavors_DATA = \
        urcu-flavors/signal.c
 
 dist_doc_examples_DATA = \
+       dist-files/Makefile \
        Makefile.examples.template
 
 doc_examples_listdir = ${doc_examplesdir}/list
@@ -83,15 +84,9 @@ if NO_SHARED
 # Don't build examples if shared libraries support was explicitly
 # disabled.
 else
-SUBDIRS_PROXY = urcu-flavors list hlist wfcqueue wfstack lfstack
-
 all-local:
-       for subdir in $(SUBDIRS_PROXY); do \
-               cd $$subdir && $(MAKE) AM_CPPFLAGS="-I../../../urcu/ -I../../../" AM_LDFLAGS='-L../../../.libs/ -Wl,-rpath="$(PWD)/../../.libs/"' $(AM_MAKEFLAGS) all && cd ..; \
-       done
+       $(MAKE) -f dist-files/Makefile AM_CPPFLAGS="-I../../../urcu/ -I../../../" AM_LDFLAGS='-L../../../.libs/ -Wl,-rpath="$(PWD)/../../.libs/"' $(AM_MAKEFLAGS) all
 
 clean-local:
-       for subdir in $(SUBDIRS_PROXY); do \
-               cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) clean && cd ..; \
-       done
+       $(MAKE) -f dist-files/Makefile $(AM_MAKEFLAGS) clean;
 endif
diff --git a/doc/examples/dist-files/Makefile b/doc/examples/dist-files/Makefile
new file mode 100644 (file)
index 0000000..e975023
--- /dev/null
@@ -0,0 +1,29 @@
+# Copyright (C) 2013  Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+#
+# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
+# OR IMPLIED.  ANY USE IS AT YOUR OWN RISK.
+#
+# Permission is hereby granted to use or copy this program for any
+# purpose,  provided the above notices are retained on all copies.
+# Permission to modify the code and to distribute modified code is
+# granted, provided the above notices are retained, and a notice that
+# the code was modified is included with the above copyright notice.
+#
+# This makefile is purposefully kept simple to support GNU and BSD make.
+
+all:
+       $(MAKE) -C hlist
+       $(MAKE) -C lfstack
+       $(MAKE) -C list
+       $(MAKE) -C urcu-flavors
+       $(MAKE) -C wfcqueue
+       $(MAKE) -C wfstack
+
+.PHONY: clean
+clean:
+       $(MAKE) -C hlist clean
+       $(MAKE) -C lfstack clean
+       $(MAKE) -C list clean
+       $(MAKE) -C urcu-flavors clean
+       $(MAKE) -C wfcqueue clean
+       $(MAKE) -C wfstack clean
This page took 0.03541 seconds and 4 git commands to generate.