31 lines
435 B
Plaintext
31 lines
435 B
Plaintext
|
#
|
||
|
# $Id: propagate.targ 1825 2013-02-26 09:39:47Z viari $
|
||
|
#
|
||
|
# propagate.targ
|
||
|
#
|
||
|
# default make targets for library containers
|
||
|
#
|
||
|
# you should define the 'DIRS' variable
|
||
|
#
|
||
|
# It will propagate 'MAKE <target>' to all
|
||
|
# directories listed in DIRS
|
||
|
#
|
||
|
|
||
|
#
|
||
|
# Rules
|
||
|
#
|
||
|
|
||
|
.PHONY: all _action $(DIRS)
|
||
|
|
||
|
.DEFAULT:
|
||
|
$(MAKE) ACTION=$@ _action
|
||
|
|
||
|
all::
|
||
|
$(MAKE) ACTION=all _action
|
||
|
|
||
|
_action: $(DIRS)
|
||
|
@echo "$(ACTION) done"
|
||
|
|
||
|
$(DIRS):
|
||
|
$(MAKE) -C $@ $(ACTION)
|