diff --git a/Payload_Type/thanatos/agent/Makefile b/Payload_Type/thanatos/agent/Makefile index e69de29..49ec5d5 100644 --- a/Payload_Type/thanatos/agent/Makefile +++ b/Payload_Type/thanatos/agent/Makefile @@ -0,0 +1,25 @@ +CARGO = cargo +GENCONFIG_EXE = ../mythic/genconfig + +CONFIG ?= config.json + +.PHONY: all +all: config ## Build all targets + +.PHONY: config +config: .config ## Build the serialized config from the config.json file + +.config: $(GENCONFIG_EXE) + $(GENCONFIG_EXE) -i $(CONFIG) -o .config + +$(GENCONFIG_EXE): + $(MAKE) -C ../mythic genconfig + +.PHONY: clean +clean: ## Clean built artifacts + $(CARGO) clean + $(RM) -v .config + +.PHONY: help +help: ## Print this help output + @grep -hE '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-11s\033[0m- %s\n", $$1, $$2}'