define CONFIG_MSG = You do not have a config.mk file, or the one you have is out of date. Please run "./configure" or copy `config.mk.in` to `config.mk` and edit its settings endef default: terraform ansible ansible: config.mk .s3_iam_credentials @$(MAKE) -C $@ terraform: config.mk @$(MAKE) -C $@ ssh: config.mk $(MAKE) -C ansible ssh reboot: config.mk $(MAKE) -C ansible reboot #ansible: # @$(MAKE) -C ansible config.mk: config.mk.in @ $(info $(CONFIG_MSG) ) @ exit 1 .s3_iam_credentials: terraform/.s3_id terraform/.s3_secret cat $^ > $@ terraform/.s3_id terraform/.s3_secret: terraform clean: rm -f config.mk @$(MAKE) -C terraform clean @$(MAKE) -C ansible clean .PHONY: terraform ansible