bulb/Makefile

32 lines
514 B
Makefile
Raw Normal View History

2024-10-11 14:26:59 -06:00
.POSIX:
.SUFFIXES:
HARE=hare
HAREFLAGS=
DESTDIR=
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
2024-10-11 15:38:07 -06:00
MANDIR=$(PREFIX)/man
2024-10-11 14:26:59 -06:00
all: bulb
bulb:
$(HARE) build $(HAREFLAGS) -o $@ cmd/$@/
check:
$(HARE) test $(HAREFLAGS)
clean:
rm -f bulb
install:
mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
install -Dm755 bulb $(DESTDIR)$(BINDIR)/bulb
2024-10-11 15:29:50 -06:00
install -Dm755 doc/bulb.1 $(DESTDIR)$(MANDIR)/man1
2024-10-11 14:26:59 -06:00
uninstall:
rm -f $(DESTDIR)$(BINDIR)/bulb
2024-10-11 15:29:50 -06:00
rm -f $(DESTDIR)$(MANDIR)/man1/bulb.1
2024-10-11 14:26:59 -06:00
.PHONY: all check clean install uninstall