runsvinit/zombietest/Makefile

24 lines
667 B
Makefile
Raw Normal View History

2015-09-28 20:30:44 +00:00
.PHONY: test clean
test: .test.uptodate
./test.bash
.test.uptodate: runsvinit zombie run-zombie Dockerfile
docker build -t zombietest .
touch $@
runsvinit: ../*.go
env GOOS=linux GOARCH=amd64 go build -o $@ github.com/peterbourgon/runsvinit
zombie: .build.uptodate
docker run --rm -v $(shell pwd):/mount zombietest-build cc -Wall -Werror -o /mount/zombie /zombie.c
.build.uptodate: build/zombie.c build/Dockerfile
docker build -t zombietest-build build/
touch $@
clean:
rm -rf .test.uptodate .build.uptodate runsvinit zombie
docker stop zombietest zombietest-build >/dev/null 2>&1 || true
docker rm zombietest zombietest-build >/dev/null 2>&1 || true