From ff87ccafcaee48c7f4b61410934a616a4eb54205 Mon Sep 17 00:00:00 2001 From: Mathieu Aubin Date: Mon, 9 May 2022 00:23:45 -0400 Subject: [PATCH] Allow for PHONY's to be discarded at suorce Could probably add straight into the crystal file instead - i couldn't take the time to learn and work it heehe Feel free to use/abuse/ignore/close Cheers --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6551f3b..38148f4 100644 --- a/Makefile +++ b/Makefile @@ -3,14 +3,16 @@ # When it's first, both commands works: # `make` # `make help` +.PHONY: help help: - @cat $(MAKEFILE_LIST) | docker run --rm -i xanders/make-help + @cat $(MAKEFILE_LIST) | grep -v 'PHONY' | docker run --rm -i xanders/make-help # Build Docker image build: docker build -t xanders/make-help . # Run `build` and `help` successively +.PHONY: test test: build help ## @@ -19,4 +21,4 @@ test: build help # Push image to `https://hub.docker.com` push: - docker push xanders/make-help \ No newline at end of file + docker push xanders/make-help