irccat a simple tool that reads from standard input (stdin) and posts the read message to a target IRC channel on a specified server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 lines
412 B

.PHONY: dev build install image test deps clean
CGO_ENABLED=0
COMMIT=$(shell git rev-parse --short HEAD)
all: dev
dev: build
@./irccat -v
build:
@go build \
-tags "netgo static_build" -installsuffix netgo \
-ldflags "-w -X $(shell go list)/.Commit=$(COMMIT)" \
.
install: build
@go install
image:
@docker build -t prologic/irccat .
test:
@go test -v -cover -race .
clean:
@git clean -f -d -X