1 # ------------------------------------------------------------------------
7 # ------------------------------------------------------------------------
11 include Makefile.
check
13 # ------------------------------------------------------------------------
16 .PHONY
: all help docs
clean distclean tags
18 all clean distclean docs
install install-user
:
24 @echo
" general targets"
25 @echo
" all - build everything"
26 @echo
" docs - build documentation"
27 @echo
" clean - clean up build"
28 @echo
" distclean - clean even more"
29 @echo
" install - install in system dir"
30 @echo
" install-user - install in user home dir"
32 @echo
" development targets"
33 @echo
" tags - build ctags/cscope index"
35 config.mk
: config.mk.
dist
36 if
test -f
$@
; then \
42 # ------------------------------------------------------------------------
43 # local dependencies for main rules
45 .PHONY
: lcl-clean lcl-distclean
50 -rm -f cscope.files cscope.out
tags
52 distclean: lcl-distclean
58 install: install-variable-check
60 install-user
: install-user-variable-check
62 # ------------------------------------------------------------------------
68 find .
-name
'*.[ch]' -o
-name
'*.lua' | grep
-v
-e CVS
-e SCCS
> cscope.files
71 cscope.out
: cscope.files
76 xargs
-n
50 ctags
-a
< cscope.files