Add Makefile
This commit is contained in:
parent
e575f1b3d3
commit
31d7c63114
30
Makefile
Normal file
30
Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
.POSIX:
|
||||
.SUFFIXES:
|
||||
HARE=hare
|
||||
HAREFLAGS=
|
||||
|
||||
DESTDIR=
|
||||
PREFIX=/usr/local
|
||||
BINDIR=$(PREFIX)/bin
|
||||
MANDIR=$(PREFIX)/share/man
|
||||
|
||||
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
|
||||
install -Dm755 doc/*.1 $(DESTDIR)$(MANDIR)/man1
|
||||
|
||||
uninstall:
|
||||
rm -f $(DESTDIR)$(BINDIR)/bulb
|
||||
|
||||
.PHONY: all check clean install uninstall
|
Loading…
Reference in New Issue
Block a user