Makefile

17 lines
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
.PHONY: build install launch clean

VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null || echo dev)

build:
	rm -f web/web
	go build -ldflags "-X main.version=$(VERSION)" -o congo ./cmd

install: build
	cp congo /usr/local/bin/congo

launch: build
	./congo launch

clean:
	rm -f congo web/web
	rm -rf /tmp/congo-test-*