aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Terry <michael.terry@canonical.com>2012-01-09 12:04:59 +0000
committerMichael Terry <michael.terry@canonical.com>2012-01-09 12:04:59 +0000
commitc5e62b64e1b8bc31266b426ccb1975300d365bc2 (patch)
tree96731058e335ea0d2893821d508280611770d79b /src
parentdd5f403c84b55b443d0c67dee6070b313dc50431 (diff)
downloadayatana-indicator-datetime-c5e62b64e1b8bc31266b426ccb1975300d365bc2.tar.gz
ayatana-indicator-datetime-c5e62b64e1b8bc31266b426ccb1975300d365bc2.tar.bz2
ayatana-indicator-datetime-c5e62b64e1b8bc31266b426ccb1975300d365bc2.zip
use notdir when generating the .gir to allow out-of-tree builds
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 254022e..a044528 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -65,13 +65,13 @@ libindicator_datetime_la_LDFLAGS = -module -avoid-version
gen-%.xml.c: %.xml
@echo "Building $@ from $<"
- @echo "const char * _$(subst -,_,$(subst .,_,$(basename $<))) = " > $@
+ @echo "const char * _$(subst -,_,$(subst .,_,$(basename $(notdir $<)))) = " > $@
@sed -e "s:\":\\\\\":g" -e s:^:\": -e s:\$$:\\\\n\": $< >> $@
@echo ";" >> $@
gen-%.xml.h: %.xml
@echo "Building $@ from $<"
- @echo "extern const char * _$(subst -,_,$(subst .,_,$(basename $<)));" > $@
+ @echo "extern const char * _$(subst -,_,$(subst .,_,$(basename $(notdir $<))));" > $@
BUILT_SOURCES = \
gen-datetime-service.xml.c \