summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile14
1 files 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 <s@ricketyspace.net>
+# Copyright © 2022 siddharth ravikumar <s@ricketyspace.net>
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: