2 # ------------------------------------------------------------------------
8 # ------------------------------------------------------------------------
10 LUA_VERSION
= $(shell lua
-v
2>&1 | sed
-e
's/.* \([0-9]\+\.[0-9]\+\)[ .].*/\1/')
11 LUA_PKG_NAME
= lua
${LUA_VERSION}
13 ifeq (${LUA_VERSION},)
14 $(error Unable to discover the lua interpreter version. Make sure
'lua' is in PATH.
)
15 # If you see this you should see the README about the packages you need to install.
18 LUA_INC
:= $(shell pkg-config
--cflags ${LUA_PKG_NAME})
19 LUA_LIB
:= $(shell pkg-config
--libs
${LUA_PKG_NAME})
22 $(error Unable to
get include and library
info on the
${LUA_PKG_NAME} package.
)
23 # If you see this then either LUA_VERSION or LUA_PKG_NAME is not getting
24 # set correctly, or you don't have pkg-config installed.
25 # Run pkg-config --list-all and see what LUA_PKG_NAME should be set to.
28 # ------------------------------------------------------------------------
32 #IXP_PREFIX = ${HOME}/usr
34 IXP_INC
:= -I
${IXP_PREFIX}/include
35 IXP_LIB
:= -L
${IXP_PREFIX}/lib
-lixp
37 # ------------------------------------------------------------------------
43 CORE_LIB_DIR
= ${DESTDIR}${PREFIX}/lib
/lua
/${LUA_VERSION}
44 CORE_LUA_DIR
= ${DESTDIR}${PREFIX}/share
/lua
/${LUA_VERSION}
46 PLUGIN_LIB_DIR
= ${DESTDIR}${PREFIX}/lib
/lua
/${LUA_VERSION}/wmii
47 PLUGIN_LUA_DIR
= ${DESTDIR}${PREFIX}/share
/lua
/${LUA_VERSION}/wmii
49 BIN_DIR
= ${DESTDIR}${PREFIX}/bin
50 RC_DIR
= ${DESTDIR}/etc
/X11
/wmii-lua
51 MAN_DIR
= ${DESTDIR}${PREFIX}/share
/man
/man3
52 XS_DIR
= ${DESTDIR}${PREFIX}/share
/xsessions
54 ALL_INSTALL_DIRS
= ${CORE_LIB_DIR} \
63 # ------------------------------------------------------------------------
66 HOME_WMII
= ~
/.wmii-lua
67 HOME_CORE
= ${HOME_WMII}/core
68 HOME_PLUGINS
= ${HOME_WMII}/plugins
69 HOME_BIN_DIR
= $(word 1,$(wildcard ~
/usr
/bin ~
/bin
) ~
/usr
/bin
)
70 HOME_PREFIX
= $(dir ${HOME_BIN_DIR})
72 ALL_HOME_DIRS
= ${HOME_CORE} \