Add targets for docker stuff, remove bogus target

cat-town
Dan Buch 8 years ago
parent 120fbf58b6
commit b6de834a7b
No known key found for this signature in database
GPG Key ID: FAEF12936DD3E3EC

@ -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

Loading…
Cancel
Save