don't forget to copy core to ~/.wmii-3.5/
[wmiirc-lua.git] / Makefile
blobf069eb0f781bb1a3fe2dce922b96b84e319745c9
1 .PHONY: all luaixp luaeventloop clean tags install
2 all: luaixp luaeventloop
4 luaixp luaeventloop:
5 ${MAKE} -C $@
7 clean:
8 -rm *~ */*~
9 -${MAKE} -C luaixp clean
10 -${MAKE} -C luaeventloop clean
13 cscope.files::
14 find . -name '*.[ch]' -o -name '*.lua' | grep -v -e CVS -e SCCS > cscope.files
16 cscope.out: cscope.files
17 -cscope -P`pwd` -b
19 tags: cscope.out
20 rm -f tags
21 xargs -n 50 ctags -a < cscope.files
24 install:
25 ifeq ($(shell pwd),$(wildcard ~/.wmii-3.5))
26 @echo "You're already in the ~/wmii-3.5/ directory"
27 else
28 mkdir -p ~/.wmii-3.5/core/ ~/.wmii-3.5/plugins/
29 @if test -f ~/.wmii-3.5/wmiirc ; then \
30 echo "NOTE: you might want to look at ~/.wmii-3.5/wmiirc.dist" ; \
31 cp wmiirc.lua ~/.wmii-3.5/wmiirc.dist ; \
32 chmod +x ~/.wmii-3.5/wmiirc.dist ; \
33 else \
34 echo "Installing new ~/.wmii-3.5/wmiirc" ; \
35 cp wmiirc.lua ~/.wmii-3.5/wmiirc ; \
36 chmod +x ~/.wmii-3.5/wmiirc ; \
38 cp core/*.lua ~/.wmii-3.5/plugins/
39 cp plugins/*.lua ~/.wmii-3.5/plugins/
40 ${MAKE} -C luaixp install
41 ${MAKE} -C luaeventloop install
42 # TODO: install manpage somewhere (~/usr/share/man/man3lua/ ?)
43 endif
46 man:
47 pod2man \
48 --name=wmii \
49 --center="WMII Lua Integration" \
50 --section=3lua \
51 --release="wmii 3.6" \
52 wmii.lua wmii.3lua