diff options
author | siddharth ravikumar <s@ricketyspace.net> | 2022-06-02 21:23:46 -0400 |
---|---|---|
committer | siddharth ravikumar <s@ricketyspace.net> | 2022-06-02 21:23:46 -0400 |
commit | 79b51a17e86b8565504d9c5a7afaa5e54dce5f57 (patch) | |
tree | d4a2fbe3cb306eaf48c54ebaef2341bf2e9bacc3 /Makefile | |
parent | 72082ee7fd2d2a75c403bb56804e1977e327958d (diff) |
Makefile: add PKGS
And new target `fix`.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -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: |