From 1a2b1c97b6186ea8c0c9142d075317458464b8a1 Mon Sep 17 00:00:00 2001 From: AislingHPE Date: Fri, 23 Aug 2024 11:56:14 +0100 Subject: [PATCH] Add `make` and `make clean` In case people clone the repository and want to quickly build the binary from source, as an alternative to `go install github.com/HewlettPackard/terraschema@latest` --- .gitignore | 3 ++- Makefile | 11 ++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 82a1a89..88da178 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ vendor -.vscode \ No newline at end of file +.vscode +terraschema \ No newline at end of file diff --git a/Makefile b/Makefile index f67a8a6..27d56f1 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ # Copyright 2024 Hewlett Packard Enterprise Development LP +.DEFAULT_GOAL := terraschema .PHONY: test test: @@ -9,4 +10,12 @@ lint: golangci-lint run .PHONY: all -all: test lint \ No newline at end of file +all: test lint + +.PHONY: terraschema +terraschema: + @go build . + +.PHONY: clean +clean: + @rm -f terraschema \ No newline at end of file