Translation update done using Pootle.
[gammu.git] / Makefile
blob9ce857a7a24a736d47f4e1c37c90ace460857aef
1 # Top level makefile for Gammu
2 # - wraps CMake build as used by configure
3 # - provides some operations which can be done on source
5 BUILD_DIR=build-configure
7 .PHONY: all clean package package_source pydoc apidoc interndoc translations gammu install distclean test NightlyMemoryCheck Nightly
9 all: $(BUILD_DIR)
10 $(MAKE) -C $(BUILD_DIR)
12 clean: $(BUILD_DIR)
13 $(MAKE) -C $(BUILD_DIR) clean
15 package: $(BUILD_DIR)
16 $(MAKE) -C $(BUILD_DIR) package
18 package_source: $(BUILD_DIR)
19 $(MAKE) -C $(BUILD_DIR) package_source
21 apidoc: $(BUILD_DIR)
22 $(MAKE) -C $(BUILD_DIR) apidoc
24 pydoc: $(BUILD_DIR)
25 $(MAKE) -C $(BUILD_DIR) pydoc
27 pydoc-html: $(BUILD_DIR)
28 $(MAKE) -C $(BUILD_DIR) pydoc-html
30 manual-html: $(BUILD_DIR)
31 $(MAKE) -C $(BUILD_DIR) manual-html
33 manual-ps: $(BUILD_DIR)
34 $(MAKE) -C $(BUILD_DIR) manual-ps
36 manual-latex: $(BUILD_DIR)
37 $(MAKE) -C $(BUILD_DIR) manual-latex
39 manual-man: $(BUILD_DIR)
40 $(MAKE) -C $(BUILD_DIR) manual-man
42 manual-htmlhelp: $(BUILD_DIR)
43 $(MAKE) -C $(BUILD_DIR) manual-htmlhelp
45 manual-pdf: $(BUILD_DIR)
46 $(MAKE) -C $(BUILD_DIR) manual-pdf
48 cppcheck: $(BUILD_DIR)
49 $(MAKE) -C $(BUILD_DIR) cppcheck
51 interndoc: $(BUILD_DIR)
52 $(MAKE) -C $(BUILD_DIR) interndoc
54 translations: $(BUILD_DIR)
55 $(MAKE) -C $(BUILD_DIR) translations
57 gammu: $(BUILD_DIR)
58 $(MAKE) -C $(BUILD_DIR) gammu
60 install: $(BUILD_DIR)
61 $(MAKE) -C $(BUILD_DIR) install
63 test: $(BUILD_DIR)
64 $(MAKE) -C $(BUILD_DIR) test
66 Nightly: $(BUILD_DIR)
67 $(MAKE) -C $(BUILD_DIR) Nightly
69 NightlyMemoryCheck: $(BUILD_DIR)
70 $(MAKE) -C $(BUILD_DIR) NightlyMemoryCheck
72 TAGFILESFIND = find gammu libgammu include smsd helper tests python gammu-detect -name '*.[ch]' -o -name '*.cpp'
74 tags: $(shell $(TAGFILESFIND))
75 @echo Generating tags file...
76 @ctags $(shell $(TAGFILESFIND))
78 distclean:
79 rm -rf build*
80 rm -f tags
82 $(BUILD_DIR):
83 @echo 'You should run configure before running make!'
84 @exit 1
86 # Developer commands
88 update-man:
89 @make -C build manual-man
90 @cp build/docs/manual/man/* docs/man/
92 check-man:
93 @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