forked from goToMain/libosdp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (35 loc) · 766 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
#
# Copyright (c) 2020 Siddharth Chandrasekaran <siddharth@embedjournal.com>
#
# SPDX-License-Identifier: Apache-2.0
#
ifndef VERBOSE
MAKE=make -s
else
MAKE=make
endif
.PHONY: default
default: build
@$(MAKE) -C build all
.PHONY: clean
clean: build
@$(MAKE) -C build clean
.PHONY: distclean
distclean:
rm -rf build
.PHONY: install
install: default
@$(MAKE) -C build install
.PHONY: check
check: build
@$(MAKE) -C build check
build:
@mkdir -p build
@cd build && cmake ..
.PHONY: gentags
gentags:
@rm -f tags cscope.out
@git ls-files --recurse-submodules | \
grep -v 'cmake/\|misc\|samples/\|doc/\|.github/\|.md$\|.txt$\|.yml$\|.cfg$\|LICENSE\|.gitignore\|.editorconfig\|CHANGELOG\|.gitmodules' | \
ctags --tag-relative=yes -L -
@cscope -Rb