forked from wichtounet/budgetwarrior
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (29 loc) · 960 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
default: release
.PHONY: default release debug all clean
include make-utils/flags.mk
include make-utils/cpp-utils.mk
ifneq (,$(findstring clang,$(CXX)))
CXX_FLAGS += -stdlib=libc++
endif
LD_FLAGS += -luuid
$(eval $(call auto_folder_compile,src))
$(eval $(call auto_add_executable,budget))
release: release_budget
debug: debug_budget
all: release debug
sonar: release
cppcheck --xml-version=2 --enable=all --std=c++11 src include 2> cppcheck_report.xml
/opt/sonar-runner/bin/sonar-runner
prefix = /usr
bindir = $(prefix)/bin
mandir = $(prefix)/share/man
install: release
@ echo "Installation of budgetwarrior"
@ echo "============================="
@ echo ""
install budget.man $(mandir)/man3/budget.3
install release/bin/budget $(bindir)/budget
install completions/bash $(prefix)/../etc/bash_completion.d/budget
install completions/zsh $(prefix)/share/zsh/site-functions/_budget
clean: base_clean
include make-utils/cpp-utils-finalize.mk