masto-aio/Makefile

52 lines
822 B
Makefile
Raw Normal View History

2023-11-12 16:50:05 -08:00
define CONFIG_MSG =
2024-01-20 14:57:08 -08:00
You do not have a config.mk file, or the one you have is out of date.
2023-11-12 16:50:05 -08:00
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 .ses_iam_credentials
@$(MAKE) -C $@
terraform: config.mk
2023-11-12 16:50:05 -08:00
@$(MAKE) -C $@
ssh: config.mk
$(MAKE) -C ansible ssh
2024-01-18 19:54:44 -08:00
reboot: config.mk
$(MAKE) -C ansible reboot
2023-11-12 16:50:05 -08:00
#ansible:
# @$(MAKE) -C ansible
config.mk: config.mk.in
2023-11-12 16:50:05 -08:00
@ $(info $(CONFIG_MSG) )
@ exit 1
.s3_iam_credentials: terraform/.s3_id terraform/.s3_secret
cat $^ > $@
2024-01-22 19:27:29 -08:00
.ses_iam_credentials: terraform/.ses_id terraform/.ses_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