1 # ------------------------------------------------------------------------
7 # ------------------------------------------------------------------------
10 ifneq ($(MAKECMDGOALS
),gitclean
)
13 include Makefile.
check
16 # ------------------------------------------------------------------------
19 .PHONY
: all help docs
clean distclean gitclean
tags
21 all clean distclean docs
install install-user
:
25 $(if
$(wildcard .git
/config
),,$(error this is not a git repository
))
28 # ------------------------------------------------------------------------
34 @echo
" general targets"
35 @echo
" all - build everything"
36 @echo
" docs - build documentation"
37 @echo
" clean - clean up build"
38 @echo
" distclean - clean even more"
39 @echo
" gitclean - clean everything not tracked by git"
40 @echo
" install - install in system dir"
41 @echo
" install-user - install in user home dir"
43 @echo
" development targets"
44 @echo
" tags - build ctags/cscope index"
48 # ------------------------------------------------------------------------
51 config.mk
: config.mk.
dist
52 if
test -f
$@
; then \
58 # ------------------------------------------------------------------------
59 # local dependencies for main rules
61 .PHONY
: lcl-clean lcl-distclean
66 -rm -f cscope.files cscope.out
tags
68 distclean: lcl-distclean
74 install: install-variable-check
76 install-user
: install-user-variable-check
78 # ------------------------------------------------------------------------
84 find .
-name
'*.[ch]' -o
-name
'*.lua' | grep
-v
-e CVS
-e SCCS
> cscope.files
87 cscope.out
: cscope.files
92 xargs
-n
50 ctags
-a
< cscope.files