You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
309 B

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: