BIN:= nonsense-time SERVICE:= nonsense-time.service STATIC := ./static/ TEMPLATES := ./templates/ .PHONY: all test clean build install info all: build build: $(BIN) install: $(BIN) rm -rf /usr/local/share/nonsense-time cp $(BIN) /usr/bin cp $(SERVICE) /etc/systemd/system/ mkdir /usr/local/share/nonsense-time cp -r $(STATIC) /usr/local/share/nonsense-time cp -r $(TEMPLATES) /usr/local/share/nonsense-time test: go test ./... clean: go mod tidy info: @echo "BIN: $(BIN)" @echo "SERVICE: $(SERVICE)" nonsense-time: nonsense-time.go $(wildcard api/*.go) $(wildcard dashboard/*.go) go build .