~chrisppy/hare-scfg

hare-scfg/Makefile -rw-r--r-- 616 bytes
822eb868Chris Palmer cleanup README.md 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.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