From b6de834a7b67796fd17e2c4cdb15dce1837b4aa1 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Sun, 24 Jul 2016 18:01:01 -0400 Subject: [PATCH] Add targets for docker stuff, remove bogus target --- lcthw-remnants-2/Makefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lcthw-remnants-2/Makefile b/lcthw-remnants-2/Makefile index c6e5992..aa99152 100644 --- a/lcthw-remnants-2/Makefile +++ b/lcthw-remnants-2/Makefile @@ -4,15 +4,12 @@ LDLIBS = -ldl EXERCISES := $(shell ./list-exercises) -all: $(EXERCISES) libex29.so +all: $(EXERCISES) ex19: object.o ex22_main: ex22.o -libex29.so: libex29.o - $(CC) -shared -o $@ $< - clean: shopt -s nullglob ; \ $(RM) $(EXERCISES) *.o *.a @@ -22,3 +19,11 @@ test: exercises: @echo $(EXERCISES) + +.PHONY: docker-image +docker-image: + docker build -t meatballhat/lcthw:latest . + +.PHONY: docker-run +docker-run: + docker run -it -v $(PWD):/app meatballhat/lcthw:latest bash -l