6 # ------------------------------------------------------------------------
9 .PHONY
: all help deb debi libs luaixp luaeventloop docs man
clean tags install install-user
15 @echo
" general targets"
16 @echo
" all - build everything"
17 @echo
" libs - build libraries"
18 @echo
" docs - build documentation"
19 @echo
" clean - clean up build"
20 @echo
" install - install in system dir"
21 @echo
" install-user - install in user home dir"
23 @echo
" development targets"
24 @echo
" tags - build ctags index"
25 @echo
" cscope - build cscope index"
27 @echo
" Debian targets"
28 @echo
" deb - build the .deb"
29 @echo
" debi - install the deb"
37 config.mk
: config.mk.
dist
38 if
test -f
$@
; then \
44 # ------------------------------------------------------------------------
47 libs
: luaeventloop luaixp
56 --center
="WMII Lua Integration" \
58 --release
="wmii 3.6" \
61 # ------------------------------------------------------------------------
67 -rm -f cscope.files cscope.out
tags
68 -${MAKE} -C luaixp
clean
69 -${MAKE} -C luaeventloop
clean
71 # ------------------------------------------------------------------------
79 ${INSTALL} -d
${ALL_INSTALL_DIRS}
82 ${MAKE} -C luaixp
install
83 ${MAKE} -C luaeventloop
install
85 # install core and plugin lua scripts
86 ${INSTALL} -m
0644 -t
${CORE_LUA_DIR} core
/*.lua
87 ${INSTALL} -m
0644 -t
${PLUGIN_LUA_DIR} plugins
/*.lua
89 # install new config file
90 ${INSTALL} -m
0755 -t
${RC_DIR} wmiirc.lua
91 ${INSTALL} -m
0644 -t
${XS_DIR} wmii-lua.desktop
94 ${INSTALL} -m
0644 -t
${MAN_DIR} ${MAN}
97 ${INSTALL} -m
0744 -t
${BIN_DIR} install-wmiirc-lua
98 ${INSTALL} -m
0755 -t
${BIN_DIR} wmii-lua
101 # install in user directory
104 ifeq ($(shell pwd
),$(wildcard ~
/.wmii-3.5
))
105 @echo
"You're already in the ~/.wmii-3.5/ directory"
107 ${INSTALL} -d
${ALL_HOME_DIRS}
108 @if
test -f
${HOME_WMII}/wmiirc
; then \
109 echo
"NOTE: you might want to look at ${HOME_WMII}/wmiirc.dist" ; \
110 ${INSTALL} -T
-m
0744 -b wmiirc.lua
${HOME_WMII}/wmiirc.
dist ; \
112 echo
"Installing new ${HOME_WMII}/wmiirc" ; \
113 ${INSTALL} -T
-m
0744 -b wmiirc.lua
${HOME_WMII}/wmiirc
; \
115 ${INSTALL} -m
0644 -b
-t
${HOME_CORE} core
/*.lua
116 ${INSTALL} -m
0644 -b
-t
${HOME_PLUGINS} plugins
/*.lua
117 ${INSTALL} -m
0644 -b
-t
${HOME_WMII} ${MAN}
118 ${MAKE} -C luaixp install-user
119 ${MAKE} -C luaeventloop install-user
127 sudo
${MAKE} install PREFIX
=/usr
130 # ------------------------------------------------------------------------
134 find .
-name
'*.[ch]' -o
-name
'*.lua' | grep
-v
-e CVS
-e SCCS
> cscope.files
136 cscope.out
: cscope.files
141 xargs
-n
50 ctags
-a
< cscope.files