-
-
Notifications
You must be signed in to change notification settings - Fork 152
/
Makefile
93 lines (63 loc) · 2.06 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Top level makefile for Gammu
# - wraps CMake build as used by configure
# - provides some operations which can be done on source
BUILD_DIR=build-configure
.PHONY: all clean package package_source pydoc apidoc interndoc translations gammu install distclean test NightlyMemoryCheck Nightly
all: $(BUILD_DIR)
$(MAKE) -C $(BUILD_DIR)
clean: $(BUILD_DIR)
$(MAKE) -C $(BUILD_DIR) clean
package: $(BUILD_DIR)
$(MAKE) -C $(BUILD_DIR) package
package_source: $(BUILD_DIR)
$(MAKE) -C $(BUILD_DIR) package_source
apidoc: $(BUILD_DIR)
$(MAKE) -C $(BUILD_DIR) apidoc
pydoc: $(BUILD_DIR)
$(MAKE) -C $(BUILD_DIR) pydoc
pydoc-html: $(BUILD_DIR)
$(MAKE) -C $(BUILD_DIR) pydoc-html
manual-html: $(BUILD_DIR)
$(MAKE) -C $(BUILD_DIR) manual-html
manual-ps: $(BUILD_DIR)
$(MAKE) -C $(BUILD_DIR) manual-ps
manual-latex: $(BUILD_DIR)
$(MAKE) -C $(BUILD_DIR) manual-latex
manual-man: $(BUILD_DIR)
$(MAKE) -C $(BUILD_DIR) manual-man
manual-htmlhelp: $(BUILD_DIR)
$(MAKE) -C $(BUILD_DIR) manual-htmlhelp
manual-pdf: $(BUILD_DIR)
$(MAKE) -C $(BUILD_DIR) manual-pdf
cppcheck: $(BUILD_DIR)
$(MAKE) -C $(BUILD_DIR) cppcheck
interndoc: $(BUILD_DIR)
$(MAKE) -C $(BUILD_DIR) interndoc
translations: $(BUILD_DIR)
$(MAKE) -C $(BUILD_DIR) translations
gammu: $(BUILD_DIR)
$(MAKE) -C $(BUILD_DIR) gammu
install: $(BUILD_DIR)
$(MAKE) -C $(BUILD_DIR) install
test: $(BUILD_DIR)
$(MAKE) -C $(BUILD_DIR) test
Nightly: $(BUILD_DIR)
$(MAKE) -C $(BUILD_DIR) Nightly
NightlyMemoryCheck: $(BUILD_DIR)
$(MAKE) -C $(BUILD_DIR) NightlyMemoryCheck
TAGFILESFIND = find gammu libgammu include smsd helper tests python gammu-detect -name '*.[ch]' -o -name '*.cpp'
tags: $(shell $(TAGFILESFIND))
@echo Generating tags file...
@ctags $(shell $(TAGFILESFIND))
distclean:
rm -rf build*
rm -f tags
$(BUILD_DIR):
@echo 'You should run configure before running make!'
@exit 1
# Developer commands
update-man:
@make -C build manual-man
@cp build/docs/manual/man/* docs/man/
check-man:
@for f in docs/man/*.[0-9] ; do echo $$f: ; LANG=en_US.UTF-8 MANWIDTH=80 man --warnings -E UTF-8 -l $$f >/dev/null ; done