Commit 09c2a7ba authored by Elliot Saba's avatar Elliot Saba
Browse files

Allow us to run `make runall` within the docker container as well

parent ec728e13
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -9,6 +9,15 @@ push: build
shell:
	docker run -ti --net=host $(IMAGE_NAME)

# Let us run `make runall` within the docker container as well
ifeq ($(shell which docker),)
runall:
	@for f in *.py; \
		do echo $$(tput setaf 1)Running $$f $$(tput sgr0); \
		python $$f; \
		echo; \
	done
else
runall:
	docker run -ti --net=host $(IMAGE_NAME) bash -c "\
		for f in *.py; \
@@ -16,3 +25,4 @@ runall:
			python \$$f; \
			echo; \
		done"
endif