From 0485c1bf2c39ea457d80369816c378ba02c6695b Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sat, 22 Jun 2013 14:39:12 -0400 Subject: [PATCH] doc/examples: add dist toplevel makefile Signed-off-by: Mathieu Desnoyers --- doc/examples/Makefile.am | 11 +++-------- doc/examples/dist-files/Makefile | 29 +++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 8 deletions(-) create mode 100644 doc/examples/dist-files/Makefile diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am index e6d6870..f720e48 100644 --- a/doc/examples/Makefile.am +++ b/doc/examples/Makefile.am @@ -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 index 0000000..e975023 --- /dev/null +++ b/doc/examples/dist-files/Makefile @@ -0,0 +1,29 @@ +# Copyright (C) 2013 Mathieu Desnoyers +# +# 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 -- 2.34.1