use top_builddir, not builddir variable in Makefile. seems builddir doesn't always exist/anymore

This commit is contained in:
Dana Jansens 2010-10-09 20:21:16 -04:00
parent a21e9c9cc5
commit 6dedf8f37e

View file

@ -471,17 +471,17 @@ edit = $(SED) \
-e 's!@libexecdir\@!$(libexecdir)!' \ -e 's!@libexecdir\@!$(libexecdir)!' \
-e 's!@bindir\@!$(bindir)!' -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 $@ @echo make: creating $@
@test -d $(shell dirname $(builddir)/$@) || \ @test -d $(shell dirname $(top_builddir)/$@) || \
mkdir $(shell dirname $(builddir)/$@) mkdir $(shell dirname $(top_builddir)/$@)
@$(edit) $< >$(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 $@ @echo make: creating $@
@test -d $(shell dirname $(builddir)/$@) || \ @test -d $(shell dirname $(top_builddir)/$@) || \
mkdir $(shell dirname $(builddir)/$@) mkdir $(shell dirname $(top_builddir)/$@)
@$(edit) $< >$(builddir)/$@ @$(edit) $< >$(top_builddir)/$@
%.desktop: %.desktop.in Makefile %.desktop: %.desktop.in Makefile
@echo make: creating $@ @echo make: creating $@