-
-
Notifications
You must be signed in to change notification settings - Fork 153
/
Copy pathMakefile
66 lines (45 loc) · 1.44 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
# 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
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 -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