mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 17:49:10 +00:00
Merge pull request #7 from justincormack/makefile
Add a simple Makefile
This commit is contained in:
commit
4694f5a7ec
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/
|
Loading…
Reference in New Issue
Block a user