mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-03 16:07:43 +00:00
Merge pull request #7 from justincormack/makefile
Add a simple Makefile
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
moby
|
14
Makefile
Normal file
14
Makefile
Normal file
@@ -0,0 +1,14 @@
|
||||
VERSION="0.0" # dummy for now
|
||||
GIT_COMMIT=$(shell git rev-list -1 HEAD)
|
||||
|
||||
default: moby
|
||||
|
||||
DEPS=$(wildcard cmd/moby/*.go) Makefile
|
||||
PREFIX?=/usr/local
|
||||
|
||||
moby: $(DEPS)
|
||||
go build --ldflags "-X main.GitCommit=$(GIT_COMMIT) -X main.Version=$(VERSION)" -o $@ github.com/moby/tool/cmd/moby
|
||||
|
||||
PHONY: install
|
||||
install: moby
|
||||
cp -a $^ $(PREFIX)/bin/
|
Reference in New Issue
Block a user