Skip to content

Commit

Permalink
Merge pull request #20 from MZC-CSC/main
Browse files Browse the repository at this point in the history
add a Makefile for the butterfly
  • Loading branch information
MZC-CSC authored Jul 1, 2024
2 parents 5ad82a8 + 00d5a84 commit 9847276
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ CODE_OF_CONDUCT.md
CONTRIBUTING.md
README.md
.git
.idea
.idea
bin/*
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ conf/*.env
conf/setup.env
!conf/setup.sample.env

data/*
data/*

bin/*
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
SHELL := /bin/bash

.PHONY: build
build:
@go build -o ./bin/butterfly main.go
@echo "CM-Butterfly build complete."

.PHONY: config
config:
@source ./conf/setup.env
@echo "CM-Butterfly is configured."

.PHONY: build-run
build-run: build config
@./bin/butterfly

.PHONY: run
run: config
@go run main.go

0 comments on commit 9847276

Please sign in to comment.