aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Conti <jason.conti@gmail.com>2011-08-19 18:46:22 -0400
committerJason Conti <jason.conti@gmail.com>2011-08-19 18:46:22 -0400
commita134d9941f6774f0b6fd55a431eea172eab0e199 (patch)
tree69033c402b0e87db71fd43490a7d562824ac1446
parent59896497977040f03aaa0b2c293c265ed2e0c4e7 (diff)
downloadayatana-indicator-notifications-a134d9941f6774f0b6fd55a431eea172eab0e199.tar.gz
ayatana-indicator-notifications-a134d9941f6774f0b6fd55a431eea172eab0e199.tar.bz2
ayatana-indicator-notifications-a134d9941f6774f0b6fd55a431eea172eab0e199.zip
* Fix XML service substitution so it works from a separate build directory
-rw-r--r--src/Makefile.am8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 708b030..2b92fc7 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -37,15 +37,15 @@ libnotifications_la_LDFLAGS = \
-module \
-avoid-version
-gen-%.xml.c: %.xml
+gen-notifications-service.xml.c: notifications-service.xml
@echo "Building $@ from $<"
- @echo "const char * _$(subst -,_,$(subst .,_,$(basename $<))) = " > $@
+ @echo "const char * _notifications_service = " > $@
@sed -e "s:\":\\\\\":g" -e s:^:\": -e s:\$$:\\\\n\": $< >> $@
@echo ";" >> $@
-gen-%.xml.h: %.xml
+gen-notifications-service.xml.h: notifications-service.xml
@echo "Building $@ from $<"
- @echo "extern const char * _$(subst -,_,$(subst .,_,$(basename $<)));" > $@
+ @echo "extern const char * _notifications_service;" > $@
BUILT_SOURCES = \
gen-notifications-service.xml.c \