mazepa.git


mazepa

~ linux userland keylogger
git clone https://github.com/djnnvx/mazepa.git
log | files | refs | archive | README

Makefile (637B)

      1 TARGET 		= mazepa-server
      2 SRC 		= main.go
      3 
      4 GROUP_ID 	= $$(id -g)
      5 USER_ID 	= $$(id -u)
      6 
      7 .PHONY: all
      8 all: compile
      9 
     10 .PHONY: help
     11 help:
     12 	@echo "\033[34targets:\033[0m"
     13 	@perl -nle'print $& if m{^[a-zA-Z_-\d]+:.*?## .*$$}' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-22s\033[0m %s\n", $$1, $$2}'
     14 
     15 .PHONY: compile
     16 compile: ## compile the project
     17 	@go build -o $(TARGET) $(SRC)
     18 
     19 .PHONY: docker
     20 docker: ## builds a docker image from source
     21 	@docker build -t $(TARGET) \
     22 		.
     23 
     24 .PHONY: clean
     25 clean: ## cleans up the project
     26 	rm -f $(TARGET)
     27 
     28 .PHONY: tidy
     29 tidy: ## runs tidy and formatting
     30 	@go mod tidy
     31 	@gofmt -s -w .