From 64b8b6e1300f9114e4e698b3c6af9727a0a1b708 Mon Sep 17 00:00:00 2001 From: Colin Henry Date: Wed, 8 Jul 2020 19:03:32 -0700 Subject: [PATCH] removed example makefile. no longer necessary in this repo --- Makefile | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 Makefile diff --git a/Makefile b/Makefile deleted file mode 100644 index cdf8e76..0000000 --- a/Makefile +++ /dev/null @@ -1,48 +0,0 @@ -.DEFAULT_GOAL := help -SHELL := bash -.ONESHELL: -.SHELLFLAGS := -eu -o pipefail -c -.DELETE_ON_ERROR: -MAKEFLAGS += --warn-undefined-variables -MAKEFLAGS += --no-builtin-rules - -ifeq ($(origin .RECIPEPREFIX), undefined) - $(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later) -endif -.RECIPEPREFIX = > - -# Default - top level rule is what gets ran when you run just `make` -build: out/image-id -.PHONY: build - -# Clean up the output directories; since all the sentinel files go under tmp, this will cause everything to get rebuilt -clean: -> rm -rf tmp -> rm -rf out -.PHONY: clean - -# Tests - re-ran if any file under src has been changed since tmp/.tests-passed.sentinel was last touched -tmp/.tests-passed.sentinel: $(shell find src -type f) -> mkdir -p $(@D) -> node run test -> touch $@ - -# Webpack - re-built if the tests have been rebuilt (and so, by proxy, whenever the source files have changed) -tmp/.packed.sentinel: tmp/.tests-passed.sentinel -> mkdir -p $(@D) -> webpack .. -> touch $@ - -# Docker image - re-built if the webpack output has been rebuilt -out/image-id: tmp/.packed.sentinel -> mkdir -p $(@D) -> image_id="example.com/my-app:$$(pwgen -1)" -> docker build --tag="$${image_id} -> echo "$${image_id}" > out/image-id - -help: - - # @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) \ - # | sed -n 's/^\(.*\): \(.*\)##\(.*\)/\1\3/p' \ - # | column -t -s ' ' -.PHONY: help