summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsiddharth ravikumar <s@ricketyspace.net>2022-06-02 21:23:46 -0400
committersiddharth ravikumar <s@ricketyspace.net>2022-06-02 21:23:46 -0400
commit79b51a17e86b8565504d9c5a7afaa5e54dce5f57 (patch)
treed4a2fbe3cb306eaf48c54ebaef2341bf2e9bacc3
parent72082ee7fd2d2a75c403bb56804e1977e327958d (diff)
Makefile: add PKGS
And new target `fix`.
-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: