.POSIX:
.SUFFIXES:
HARE=hare
HAREFLAGS=
HAREDOC=haredoc
DESTDIR=
PREFIX=/usr/local
SRCDIR=$(PREFIX)/src
HARESRCDIR=$(SRCDIR)/hare
THIRDPARTYDIR=$(HARESRCDIR)/third-party
all:
@true # no-op
docs:
mkdir -p docs/format/scfg
$(HAREDOC) -Fhtml format > docs/format/index.html
$(HAREDOC) -Fhtml format::scfg > docs/format/scfg/index.html
check:
$(HARE) test
clean:
rm -rf docs
install:
mkdir -p $(DESTDIR)$(THIRDPARTYDIR)/format/scfg
install -m644 format/scfg/* $(DESTDIR)$(THIRDPARTYDIR)/format/scfg
uninstall:
rm -rf $(DESTDIR)$(THIRDPARTYDIR)/format/scfg
.PHONY: all docs clean check install uninstall