Create Makefile

This commit is contained in:
Ice3man 2021-03-30 22:17:28 +05:30 committed by GitHub
parent 3e8958fd4b
commit a63326dd21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

14
Makefile Normal file
View File

@ -0,0 +1,14 @@
# Go parameters
GOCMD=go
GOBUILD=$(GOCMD) build
GOMOD=$(GOCMD) mod
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
all: build
build:
$(GOBUILD) -v -ldflags="-extldflags=-static" -o "httpx" cmd/httpx/httpx.go
test:
$(GOTEST) -v ./...
tidy:
$(GOMOD) tidy