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
|
|
|
|
for i in */makefile; do; \
|
|
|
|
echo "`dirname $$i` " ; \
|
|
|
|
$(MAKE) -C $(SRC_DIR)/`dirname $$i` $1 ; \
|
|
|
|
echo "" ; \
|
|
|
|
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)
|