[build] Install awesomerc.lua to $sysconfdir/awesome

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Michael Gehring 2008-06-09 11:49:50 +02:00 committed by Julien Danjou
parent 5a88d26f0e
commit 19534c0bfc
2 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,8 @@ SUFFIXES =
bin_PROGRAMS = bin_PROGRAMS =
doc_DATA = doc_DATA =
man_MANS = man_MANS =
etcdir = $(sysconfdir)/awesome
etc_DATA =
iconsdir = $(pkgdatadir)/icons iconsdir = $(pkgdatadir)/icons
dist_icons_DATA = dist_icons_DATA =
iconslayoutsdir = $(iconsdir)/layouts iconslayoutsdir = $(iconsdir)/layouts
@ -54,6 +56,8 @@ EXTRA_DIST += awesomerc.lua.in
CLEANFILES += awesomerc.lua CLEANFILES += awesomerc.lua
BUILT_SOURCES += awesomerc.lua BUILT_SOURCES += awesomerc.lua
doc_DATA += awesomerc.lua doc_DATA += awesomerc.lua
etc_DATA += awesomerc.lua
awesomerc.lua: $(srcdir)/awesomerc.lua.in awesomerc.lua: $(srcdir)/awesomerc.lua.in
$(SED) -e "s|[@]iconslayoutsdir@|$(iconslayoutsdir)|;s|[@]iconsdir@|$(iconsdir)|" \ $(SED) -e "s|[@]iconslayoutsdir@|$(iconslayoutsdir)|;s|[@]iconsdir@|$(iconsdir)|" \
< $(srcdir)/awesomerc.lua.in > awesomerc.lua < $(srcdir)/awesomerc.lua.in > awesomerc.lua

View File

@ -113,6 +113,8 @@ test "x$LUA" = "x" && AC_MSG_WARN([awesome compilation requires Lua])
AS_AC_EXPAND(awesomelibdir, "$datarootdir/awesome/lib") AS_AC_EXPAND(awesomelibdir, "$datarootdir/awesome/lib")
AC_DEFINE_UNQUOTED([AWESOME_LUA_LIB_PATH], "${awesomelibdir}", [awesome lib path]) AC_DEFINE_UNQUOTED([AWESOME_LUA_LIB_PATH], "${awesomelibdir}", [awesome lib path])
AS_AC_EXPAND(awesomesysconfdir, "$sysconfdir/awesome")
AC_DEFINE_UNQUOTED([AWESOME_CONF_PATH], "${awesomesysconfdir}", [awesome conf path])
# Checks for libraries. # Checks for libraries.
AC_PATH_XTRA AC_PATH_XTRA