2023-11-12 16:50:05 -08:00
|
|
|
|
|
|
|
|
|
|
|
define CONFIG_MSG =
|
|
|
|
|
|
|
|
You do not have a config.mk file.
|
|
|
|
|
|
|
|
Please run "./configure" or copy `config.mk.in` to `config.mk` and edit its settings
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
default: terraform ansible
|
|
|
|
|
2024-01-18 18:14:17 -08:00
|
|
|
ansible: config.mk .s3_iam_credentials
|
|
|
|
@$(MAKE) -C $@
|
|
|
|
|
|
|
|
terraform: config.mk
|
2023-11-12 16:50:05 -08:00
|
|
|
@$(MAKE) -C $@
|
|
|
|
|
|
|
|
ssh: config.mk
|
|
|
|
$(MAKE) -C ansible ssh
|
|
|
|
|
|
|
|
#ansible:
|
|
|
|
# @$(MAKE) -C ansible
|
|
|
|
|
2024-01-18 18:14:17 -08:00
|
|
|
config.mk: config.mk.in
|
2023-11-12 16:50:05 -08:00
|
|
|
@ $(info $(CONFIG_MSG) )
|
|
|
|
@ exit 1
|
|
|
|
|
2024-01-18 18:14:17 -08:00
|
|
|
.s3_iam_credentials: terraform/.s3_id terraform/.s3_secret
|
|
|
|
cat $^ > $@
|
|
|
|
|
|
|
|
terraform/.s3_id terraform/.s3_secret: terraform
|
|
|
|
|
|
|
|
|
2023-11-12 16:50:05 -08:00
|
|
|
clean:
|
|
|
|
rm -f config.mk
|
|
|
|
@$(MAKE) -C terraform clean
|
|
|
|
@$(MAKE) -C ansible clean
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: terraform ansible
|
|
|
|
|
|
|
|
|