core: Refer to file by path not name
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Wed, 17 Jun 2009 13:57:47 +0000 (16:57 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Wed, 17 Jun 2009 13:57:47 +0000 (16:57 +0300)
Refering to it just by name was breaking `make distcheck`.

data/Makefile.am

index 1d57b97..4b32806 100644 (file)
@@ -35,7 +35,7 @@ desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
 $(desktop_DATA): $(desktop_in_files) Makefile
        @sed -e "s,\$${prefix},${prefix},g" \
             -e "s,\$${version},${PACKAGE_VERSION},g" \
-             $(@:.desktop=.desktop.in) > $@
+             $(srcdir)/$(@:.desktop=.desktop.in) > $@
 
 CLEANFILES = $(dbusservice_DATA) $(desktop_DATA)
 EXTRA_DIST = $(schema_DATA) $(dbusservice_in_files) $(desktop_in_files)