first commit
This commit is contained in:
19
Makefile
Normal file
19
Makefile
Normal file
@@ -0,0 +1,19 @@
|
||||
#GOFLAGS=""
|
||||
LDFLAGS=-ldflags "-s -w"
|
||||
BINARY=metrorama
|
||||
|
||||
.DEFAULT_GOAL: $(BINARY)
|
||||
|
||||
$(BINARY): clean
|
||||
go build ${GOFLAGS} ${LDFLAGS} -o ${BINARY}
|
||||
|
||||
install:
|
||||
go install ${GOFLAGS} ${LDFLAGS} -o ${BINARY}
|
||||
|
||||
clean:
|
||||
if [ -f ${BINARY} ]; then rm ${BINARY} ; fi
|
||||
|
||||
run: clean $(BINARY)
|
||||
./$(BINARY)
|
||||
|
||||
.phony: clean install
|
||||
Reference in New Issue
Block a user