~sircmpwn/hare-xml

ref: 407b4bc11f1767d7f35d5d9d16f8dea7ee811abf hare-xml/Makefile -rw-r--r-- 563 bytes
407b4bc1Sebastian Makefile: add docs target 5 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