Destination = $(DSTROOT)/Users/Shared # Common Makefile include $(MAKEFILEPATH)/CoreOS/ReleaseControl/Common.make Install_Directory_Mode = 1777 # Subdirectories with their own makefiles SubDirs = install:: $(_v) for subdir in $(SubDirs); do \ (cd "$$subdir" && $(MAKE) $@ Destination="$(Destination)/$$subdir"); \ done install:: @echo "Installing $(Destination)" $(_v) $(INSTALL_DIRECTORY) "$(Destination)"