diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2025-04-27 00:49:27 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2025-04-27 00:49:27 -0400 |
| commit | 34b8d8ff1f9d65c08a9156d72f08cf548183c6f4 (patch) | |
| tree | a00fa0410a7bcde125a37b50b3a4956c838fa569 /makefile | |
| parent | 42527fdb0aca0d30652bb3052b80ab75ab057572 (diff) | |
Large commit; many features
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..bdbab30 --- /dev/null +++ b/makefile @@ -0,0 +1,39 @@ +BINS := atlas +SRC := $(wildcard cmd/*.go) $(wildcard pkg/*/*.go) +INSTALL_PATH := ~/.local/bin + +.PHONY: all install uninstall test info clean + +all: $(BINS) + +atlas: $(SRC) + go build -o $@ ./cmd/atlas.go + + +test: + go test ./... + +######## +# +######## + +install: $(INSTALL_PATH)/atlas + +$(INSTALL_PATH)/atlas: atlas + cp atlas $(INSTALL_PATH) + +uninstall: $(INSTALL_PATH)/atlas + rm $< + +######## +# +######## + +info: + @echo "SRC: $(SRC)" + @echo "BINS: $(BINS)" + @echo "INSTALL_PATH: $(INSTALL_PATH)" + +clean: + rm -f $(BINS) + go mod tidy |
