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
10 $(MAKE
) -C
$(BUILD_DIR
)
13 $(MAKE
) -C
$(BUILD_DIR
) clean
16 $(MAKE
) -C
$(BUILD_DIR
) package
18 package_source
: $(BUILD_DIR
)
19 $(MAKE
) -C
$(BUILD_DIR
) package_source
22 $(MAKE
) -C
$(BUILD_DIR
) apidoc
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
58 $(MAKE
) -C
$(BUILD_DIR
) gammu
61 $(MAKE
) -C
$(BUILD_DIR
) install
64 $(MAKE
) -C
$(BUILD_DIR
) test
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
))
83 @echo
'You should run configure before running make!'
89 @make
-C build manual-man
90 @cp build
/docs
/manual
/man
/* docs
/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