A simple IRC notifier
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.

30 lines
482 B

.PHONY: clean doc
GO = go
RM = rm
SCDOC = scdoc
PREFIX = /usr/local
BINDIR = bin
MANDIR = share/man
all: bell doc
bell: main.go config.go
$(GO) build $(GOFLAGS) .
doc: bell.1
bell.1: bell.1.scd
$(SCDOC) < bell.1.scd > bell.1
$(RM) -rf bell bell.1
install: all
mkdir -p $(DESTDIR)$(PREFIX)/$(BINDIR)
mkdir -p $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
cp -f bell $(DESTDIR)$(PREFIX)/$(BINDIR)
cp -f bell.1 $(DESTDIR)$(PREFIX)/$(MANDIR)/man1