summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-06-13 18:41:58 +0200
committerLennart Poettering <lennart@poettering.net>2010-06-13 18:41:58 +0200
commit68c5eb534423787400e220dbfbf43df77c1557a2 (patch)
treefcacb6d227f27bbbf51a5ae2c898c8cc4ffdbca2 /src/Makefile.am
parent2383e9ef4771213cd6c453a7a6db0cd42abd8d53 (diff)
build-sys: properly create gtk3 module link
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 90645d4..e4cd68c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -314,8 +314,10 @@ libcanberra_gtk3_module_la_LDFLAGS = \
-avoid-version -module -export-dynamic
install-exec-hook:
- cd $(DESTDIR)$(gtk3moduledir) && \
- $(LN_S) libcanberra-gtk3-module.so libcanberra-gtk-module.so
+ $(MKDIR_P) -m 755 $(DESTDIR)$(gtk3moduledir)
+ ( cd $(DESTDIR)$(gtk3moduledir) && \
+ rm -f libcanberra-gtk-module.so && \
+ $(LN_S) libcanberra-gtk3-module.so libcanberra-gtk-module.so )
endif