Substitute icon path in awesomerc (1/2)

Use the path where the icons will actually be installed instead
of some static default value.
This commit is contained in:
Hans Ulrich Niedermann 2008-01-08 21:39:40 +01:00 committed by Julien Danjou
parent 283a21db81
commit 607df96600
2 changed files with 13 additions and 7 deletions

View File

@ -5,7 +5,7 @@ SUFFIXES =
bin_PROGRAMS = bin_PROGRAMS =
doc_DATA = doc_DATA =
man_MANS = man_MANS =
iconslayoutsdir = ${pkgdatadir}/icons/layouts iconslayoutsdir = $(pkgdatadir)/icons/layouts
dist_iconslayouts_DATA = dist_iconslayouts_DATA =
LAYOUTS = LAYOUTS =
@ -35,9 +35,6 @@ WIDGETS += widgets/tasklist.c
WIDGETS += widgets/graph.c WIDGETS += widgets/graph.c
EXTRA_DIST += awesomerc
doc_DATA += awesomerc
doc_DATA += README doc_DATA += README
EXTRA_DIST += LICENSE EXTRA_DIST += LICENSE
@ -47,13 +44,22 @@ EXTRA_DIST += STYLE
doc_DATA += STYLE doc_DATA += STYLE
EXTRA_DIST += awesomerc.in
CLEANFILES += awesomerc
BUILT_SOURCES += awesomerc
doc_DATA += awesomerc
awesomerc: $(srcdir)/awesomerc.in
$(SED) -e "s|[@]iconslayoutsdir@|$(iconslayoutsdir)|" \
< $(srcdir)/awesomerc.in > awesomerc
CLEANFILES += defconfig.h CLEANFILES += defconfig.h
BUILT_SOURCES += defconfig.h BUILT_SOURCES += defconfig.h
defconfig.h: $(srcdir)/awesomerc defconfig.h: awesomerc
@echo "generating defconfig.h from $(srcdir)/awesomerc" @echo "generating defconfig.h from awesomerc"
@echo "#define AWESOME_DEFAULT_CONFIG \\" > defconfig.h @echo "#define AWESOME_DEFAULT_CONFIG \\" > defconfig.h
@echo -n "\"" >> defconfig.h @echo -n "\"" >> defconfig.h
@$(SED) 's,\\,\\\\,g;s/$$/ \\/;s/"/\\"/g' "$(srcdir)/awesomerc" >> defconfig.h @$(SED) 's,\\,\\\\,g;s/$$/ \\/;s/"/\\"/g' "awesomerc" >> defconfig.h
@echo "\"" >> defconfig.h @echo "\"" >> defconfig.h
if USING_GCC if USING_GCC