From a134d9941f6774f0b6fd55a431eea172eab0e199 Mon Sep 17 00:00:00 2001 From: Jason Conti Date: Fri, 19 Aug 2011 18:46:22 -0400 Subject: * Fix XML service substitution so it works from a separate build directory --- src/Makefile.am | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 \ -- cgit v1.2.3