blob: 936ce70da3b9b44c09e423c729764a2a34308000 (
plain)
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
35
36
37
38
39
40
41
|
.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/libtui/layout/vlayout
mkdir -p docs/libtui/widget/list
mkdir -p docs/libtui/widget/ed
$(HAREDOC) -Fhtml libtui > docs/libtui/index.html
$(HAREDOC) -Fhtml libtui::layout > docs/libtui/layout/index.html
$(HAREDOC) -Fhtml libtui::layout::vlayout > docs/libtui/layout/vlayout/index.html
$(HAREDOC) -Fhtml libtui::widget > docs/libtui/widget/index.html
$(HAREDOC) -Fhtml libtui::widget::list > docs/libtui/widget/list/index.html
$(HAREDOC) -Fhtml libtui::widget::ed > docs/libtui/widget/ed/index.html
install:
mkdir -p "$(DESTDIR)$(THIRDPARTYDIR)"
cp -r libtui "$(DESTDIR)$(THIRDPARTYDIR)"/libtui
chmod -R 755 "$(DESTDIR)$(THIRDPARTYDIR)"/libtui
uninstall:
rm -rf $(DESTDIR)$(THIRDPARTYDIR)/libtui
.PHONY: all clean check docs install uninstall
|