lim/Makefile

20 lines
505 B
Makefile
Raw Permalink Normal View History

2018-04-17 11:58:40 -07:00
GOFILES := $(shell find . -type f | grep go$$ )
build/lim: build ${GOFILES}
2018-04-17 12:03:44 -07:00
@docker build -t smcquay/lim:build . -f Dockerfile.build > /dev/null
@docker create --name ext smcquay/lim:build > /dev/null
@docker cp ext:/usr/local/bin/lim build/ > /dev/null
@docker rm -f ext > /dev/null
@docker image rm smcquay/lim:build > /dev/null
2018-04-17 11:58:40 -07:00
build:
@mkdir build
.PHONY: docker-image
docker-image: build/lim
2018-04-17 12:03:44 -07:00
@docker build --no-cache -t smcquay/lim:latest . > /dev/null
2018-04-17 11:58:40 -07:00
.PHONY: clean
clean:
@rm -rf build