# Commake (v0.2.0) - https://niallbunting.com/commake/ .PHONY: all help init install build run lint test e2e plan deploy int versioncheck .ONESHELL: all: lint test run #help Full check help: @echo "-- HELP --" @grep '#[h]elp' makefile # Use this to check if they have the correct version # To use update the if statement and the message. versioncheck: @if [ 0 -gt 0 ]; then echo "Wrong version of: " && exit 1; fi init: #help Run through dependencies and check @echo Not Implemented install: versioncheck #help Install packages @echo Not Implemented build: #help Build the project files cd ./backend && GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ../target/localpdsserver . cd ./extension && zip -r ../target/extension.zip . run: #help Run locally go run . lint: #help Run linting @echo Not Implemented test: #help Run the unit tests @echo Not Implemented int: #help Run the int tests @echo Not Implemented e2e: #help Run the e2e tests @echo Not Implemented plan: #help Plan to run any infra changes @echo Not Implemented deploy: #help Run any infra changes scp ./target/localpdsserver $(DOMAIN):~/localpds # Custom Commands - Put your custom commands below