]> saetta.ns0.it Git - libgtkdateentry/commitdiff
Bugfix on setting library extension under win32.
authorAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Mon, 28 Nov 2011 08:31:31 +0000 (09:31 +0100)
committerAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Mon, 28 Nov 2011 08:31:31 +0000 (09:31 +0100)
glade/Makefile.am

index adec8b72f676c0793e6572517da979af83fd90cb..3975a55c0a8a72971824be3e5773cc5e1f4e9f01 100644 (file)
@@ -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)