From 79b51a17e86b8565504d9c5a7afaa5e54dce5f57 Mon Sep 17 00:00:00 2001 From: siddharth ravikumar Date: Thu, 2 Jun 2022 21:23:46 -0400 Subject: Makefile: add PKGS And new target `fix`. --- Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 6a9fb15..56b2d20 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,22 @@ # SPDX-License-Identifier: ISC -# Copyright © 2021 siddharth ravikumar +# Copyright © 2022 siddharth ravikumar MOD=ricketyspace.net/peach +PKGS=${MOD}/client ${MOD}/nws ${MOD}/photon -peach: fmt +peach: fix fmt go build ${BUILD_OPTS} fmt: - go fmt ${MOD} ${MOD}/client ${MOD}/nws ${MOD}/photon + go fmt ${MOD} ${PKGS} +.PHONY: fmt + +fix: + go fix ${MOD} ${PKGS} +.PHONY: fix test: - go test ${MOD}/client ${MOD}/nws ${MOD}/photon ${ARGS} + go test ${PKGS} ${ARGS} .PHONY: test clean: -- cgit v1.2.3