use top_builddir, not builddir variable in Makefile. seems builddir doesn't always...
authorDana Jansens <danakj@orodu.net>
Sun, 10 Oct 2010 00:21:16 +0000 (20:21 -0400)
committerDana Jansens <danakj@orodu.net>
Mon, 24 Jan 2011 19:19:22 +0000 (14:19 -0500)
Makefile.am

index edd02fd..f57a770 100644 (file)
@@ -471,17 +471,17 @@ edit = $(SED) \
        -e 's!@libexecdir\@!$(libexecdir)!' \
        -e 's!@bindir\@!$(bindir)!'
 
-data/autostart/autostart: $(srcdir)/data/autostart/autostart.in Makefile
+data/autostart/autostart: $(top_srcdir)/data/autostart/autostart.in Makefile
        @echo make: creating $@
-       @test -d $(shell dirname $(builddir)/$@) || \
-         mkdir $(shell dirname $(builddir)/$@)
-       @$(edit) $< >$(builddir)/$@
+       @test -d $(shell dirname $(top_builddir)/$@) || \
+         mkdir $(shell dirname $(top_builddir)/$@)
+       @$(edit) $< >$(top_builddir)/$@
 
-data/autostart/openbox-autostart: $(srcdir)/data/autostart/openbox-autostart.in Makefile
+data/autostart/openbox-autostart: $(top_srcdir)/data/autostart/openbox-autostart.in Makefile
        @echo make: creating $@
-       @test -d $(shell dirname $(builddir)/$@) || \
-         mkdir $(shell dirname $(builddir)/$@)
-       @$(edit) $< >$(builddir)/$@
+       @test -d $(shell dirname $(top_builddir)/$@) || \
+         mkdir $(shell dirname $(top_builddir)/$@)
+       @$(edit) $< >$(top_builddir)/$@
 
 %.desktop: %.desktop.in Makefile
        @echo make: creating $@