Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Go Httpbin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Container Registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Nix
Go Httpbin
Commits
579e061d
Unverified
Commit
579e061d
authored
2 years ago
by
Will McCutchen
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Stop being clever about when to rebuild (#95)
parent
aac468e9
No related branches found
Branches containing commit
Tags
v2.5.0
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+4
-8
4 additions, 8 deletions
Makefile
with
4 additions
and
8 deletions
Makefile
+
4
−
8
View file @
579e061d
...
...
@@ -16,22 +16,18 @@ TOOL_BIN_DIR ?= $(shell go env GOPATH)/bin
TOOL_GOLINT
:=
$(
TOOL_BIN_DIR
)
/golint
TOOL_STATICCHECK
:=
$(
TOOL_BIN_DIR
)
/staticcheck
GO_SOURCES
=
$(
shell find
.
-name
*
.go
)
# =============================================================================
# build
# =============================================================================
build
:
$(DIST_PATH)/go-httpbin
buildtests
:
$(DIST_PATH)/go-httpbin.test
$(DIST_PATH)/go-httpbin
:
$(GO_SOURCES)
build
:
mkdir
-p
$(
DIST_PATH
)
CGO_ENABLED
=
0 go build
-ldflags
=
"-s -w"
-o
$(
DIST_PATH
)
/go-httpbin ./cmd/go-httpbin
.PHONY
:
build
$(DIST_PATH)/go-httpbin.test
:
$(GO_SOURCES)
buildtests
:
CGO_ENABLED
=
0 go
test
-ldflags
=
"-s -w"
-v
-c
-o
$(
DIST_PATH
)
/go-httpbin.test ./httpbin
.PHONY
:
buildtests
clean
:
rm
-rf
$(
DIST_PATH
)
$(
COVERAGE_PATH
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment