Browse Source

makefile

master
n0m1s 6 years ago
parent
commit
4da3bcdadb
Signed by: nomis GPG Key ID: BC0454CAD76FE803
1 changed files with 19 additions and 0 deletions
  1. +19
    -0
      makefile

+ 19
- 0
makefile View File

@ -0,0 +1,19 @@
GO := $(shell which go)
BINARY_NAME := jdr-server
FILES = $(shell find . -type f -name '*.go')
.PHONY: all run clean
all: $(BINARY_NAME)
$(BINARY_NAME): $(FILES)
$(GO) fmt $(addprefix ./, $(shell dirname $^ | sort | uniq))
$(GO) get
$(GO) build -o $@ -v
run: $(BINARY_NAME)
./$(BINARY_NAME)
clean:

Loading…
Cancel
Save