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` "
|
|
|
|
$(MAKE) -C $(SRC_DIR)/`dirname $$i` $1
|
|
|
|
echo ""
|
2019-04-27 22:15:45 +00:00
|
|
|
done
|
|
|
|
endef
|
2019-04-14 07:26:21 +00:00
|
|
|
|
2019-04-27 22:15:45 +00:00
|
|
|
install:
|
|
|
|
$(info Initalizing)
|
|
|
|
$(call recursive_make,install)
|
2019-04-16 00:10:13 +00:00
|
|
|
|
2019-04-27 22:15:45 +00:00
|
|
|
init:
|
|
|
|
$(info Initalizing)
|
|
|
|
$(call recursive_make,init)
|
2019-04-14 07:26:21 +00:00
|
|
|
|
2019-04-27 22:15:45 +00:00
|
|
|
update:
|
|
|
|
$(info Updating)
|
|
|
|
$(call recursive_make,update)
|
2019-04-14 07:26:21 +00:00
|
|
|
|
2019-04-27 22:15:45 +00:00
|
|
|
remove:
|
|
|
|
$(info Removing)
|
|
|
|
$(call recursive_make,remove)
|