From a8edffae1f2465c35d0b05ed7fca6236bc4b7ddf Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Mon, 28 Nov 2011 09:31:31 +0100 Subject: [PATCH] Bugfix on setting library extension under win32. --- glade/Makefile.am | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/glade/Makefile.am b/glade/Makefile.am index adec8b7..3975a55 100644 --- a/glade/Makefile.am +++ b/glade/Makefile.am @@ -8,9 +8,17 @@ catalogs_DATA = gtkdateentry.xml EXTRA_DIST = $(catalogs_DATA) +if PLATFORM_WIN32 +libmodulesext = -0.dll +libmodulesdir = $(bindir) +else +libmodulesext = .so +libmodulesdir = $(libdir) +endif + install-exec-hook: - cd $(moduledir) && \ - ln -s -f $(libdir)/libgtkdateentry.so . + cd $(glademodulesdir) && \ + ln -s -f $(libmodulesdir)/libgtkdateentry$(libmodulesext) . uninstall-hook: - rm -f $(moduledir)/libgtkdateentry.so + rm -f $(glademodulesdir)/libgtkdateentry$(libmodulesext) -- 2.49.0