BINARY = mynotes.bin BUILD_DIR = ./bin/ CFG_FILE = mynotes_cfg.json .DEFAULT_GOAL := help build: @CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o $(BUILD_DIR)/$(BINARY) . run: build @cd $(BUILD_DIR) && ./$(BINARY) --run $(CFG_FILE) commit: @read -p "Enter commit message:" msg; \ git add . && git status && sleep 1 && git commit -m "$$msg" sync: pull push push: @git push origin master pull: @git pull --rebase origin master all: commit sync help: @clear @echo "Comenzi disponibile: " @echo " build - construieste executabilul" @echo " run - executa programul" @echo " pull - ia ultimele modificare din repository" @echo " commit - adauga in repository modificarile" @echo " push - pune toate modificarile in repository" @echo " all - commit pull push"