Skip to content

Commit

Permalink
chore: add agent Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
MEhrn00 committed Jul 7, 2024
1 parent 4737bb8 commit 4416685
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Payload_Type/thanatos/agent/Makefile
Original file line number Diff line number Diff line change
@@ -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}'

0 comments on commit 4416685

Please sign in to comment.