-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
43 lines (36 loc) · 825 Bytes
/
Makefile
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
42
43
SUBDIRS := test example
.PHONY: test
test:
$(MAKE) $@ -C test
.PHONY: coverage
coverage:
for dir in $(SUBDIRS); do \
$(MAKE) $@ -C $$dir; \
done
.PHONY: doc
doc:
lua-language-server --doc ./ --doc_out_path ./
doxygen
rockspec_latest := rockspecs/$(shell ls -v rockspecs/ | grep 'luals2dox-[[:digit:]]' | tail -n1)
rockspec_dev := rockspecs/$(shell ls -v rockspecs/ | grep 'luals2dox-scm' | tail -n1)
.PHONY: install uninstall
install:
rm -f doc.md
luarocks make $(rockspec_latest)
install-dev:
rm -f doc.md
luarocks make $(rockspec_dev)
uninstall:
luarocks remove luals2dox
.PHONY: clean distclean
clean:
for dir in $(SUBDIRS); do \
$(MAKE) $@ -C $$dir; \
done
rm -f doc.json doc.md
rm -f coverage-final.json
rm -rf html/
distclean: clean
for dir in $(SUBDIRS); do \
$(MAKE) $@ -C $$dir; \
done