~sircmpwn/hare-xml

hare-xml/Makefile -rw-r--r-- 563 bytes
37ab9475Drew DeVault parser: don't excessively unread runes 2 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
.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

check:
	$(HARE) test

clean:
	rm -rf docs

docs:
	mkdir -p docs/format/xml
	$(HAREDOC) -Fhtml format::xml > docs/format/xml/index.html

install:
	mkdir -p "$(DESTDIR)$(THIRDPARTYDIR)"/format/xml
	install -m644 format/xml/* "$(DESTDIR)$(THIRDPARTYDIR)"/format/xml/

uninstall:
	rm -rf $(DESTDIR)$(THIRDPARTYDIR)/format/xml

.PHONY: all clean check docs install uninstall