2020-03-19 19:55:20 +00:00
|
|
|
# -*- mode: makefile-gmake; -*-
|
2019-04-14 07:26:21 +00:00
|
|
|
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
|
|
|
|
2019-04-27 22:15:45 +00:00
|
|
|
include lib/shared.mk
|
2019-04-14 07:26:21 +00:00
|
|
|
|
2019-04-27 22:15:45 +00:00
|
|
|
define recursive_make
|
2020-03-09 17:30:45 +00:00
|
|
|
for i in */makefile; do
|
|
|
|
echo "`dirname $$i` "
|
2021-11-28 21:33:24 +00:00
|
|
|
$(MAKE) --keep-going -C $(SRC_DIR)/`dirname $$i` $1
|
2020-03-09 17:30:45 +00:00
|
|
|
echo ""
|
2019-04-27 22:15:45 +00:00
|
|
|
done
|
|
|
|
endef
|
2019-04-14 07:26:21 +00:00
|
|
|
|
2021-11-28 21:33:24 +00:00
|
|
|
up:
|
|
|
|
$(call recursive_make,up)
|
2019-04-16 00:10:13 +00:00
|
|
|
|
2021-11-28 21:33:24 +00:00
|
|
|
down:
|
|
|
|
$(call recursive_make,down)
|