mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-06 03:24:00 +00:00
Also tidy up some of the coding style to be more Linux kernel style which most of the code already was. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
16 lines
311 B
Makefile
16 lines
311 B
Makefile
.PHONY: all
|
|
|
|
DEPS=nc-vsock.c
|
|
|
|
all: Dockerfile $(DEPS)
|
|
docker build -t nc-vsock:build .
|
|
docker run --rm nc-vsock:build cat nc-vsock > nc-vsock
|
|
chmod 755 nc-vsock
|
|
|
|
nc-vsock: $(DEPS)
|
|
gcc -Wall -Werror -o nc-vsock nc-vsock.c -luuid
|
|
|
|
clean:
|
|
rm -f nc-vsock
|
|
docker images -q nc-vsock:build | xargs docker rmi -f
|