dotfiles/makefile
James Patrick 6c3787ef1b Refactored to use .ONESHELL
This makes it a hell of a lot simpler but will lose support for BSD
make. All effected machines are running gnu-make, so the cost benefit
ratio ways heavily in favor of doing this.
2020-03-09 13:37:50 -04:00

28 lines
467 B
Makefile

SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
include lib/shared.mk
define recursive_make
for i in */makefile; do
echo "`dirname $$i` "
$(MAKE) -C $(SRC_DIR)/`dirname $$i` $1
echo ""
done
endef
install:
$(info Initalizing)
$(call recursive_make,install)
init:
$(info Initalizing)
$(call recursive_make,init)
update:
$(info Updating)
$(call recursive_make,update)
remove:
$(info Removing)
$(call recursive_make,remove)