]> saetta.ns0.it Git - reptool/libreptool/commitdiff
Added auto-installation in mingw (closes #827).
authorAndrea Zagli <azagli@libero.it>
Sat, 1 Feb 2014 13:15:21 +0000 (14:15 +0100)
committerAndrea Zagli <azagli@libero.it>
Sat, 1 Feb 2014 13:15:21 +0000 (14:15 +0100)
Makefile.am
configure.ac

index 50b201661f73886e1d522168724b45e96118714c..626cc07de42593cc6e2fe365ee93d8d6c852cc25 100644 (file)
@@ -12,6 +12,11 @@ distclean-local:
                rm -f ChangeLog; \
        fi
 
+if PLATFORM_WIN32
+install-data-hook:
+       \cp -f -r $(prefix)/* /mingw
+endif
+
 ChangeLog:
        @echo Creating $@
        @if test -d "$(srcdir)/.git"; then \
index 2a04c6bf439e8c5eff9a9bec484367ef9c05f682..9554a8d8a5d73e2440c1f582ea9e153c33ae9338 100644 (file)
@@ -66,6 +66,21 @@ AC_FUNC_STRFTIME
 AC_FUNC_STRTOD
 AC_CHECK_FUNCS([memset strcasecmp strstr strtol])
 
+dnl ******************************
+dnl Check for Operating System
+dnl ******************************
+
+platform_win32=no
+
+case "$host" in
+*-mingw*)
+    platform_win32=yes
+    ;;
+esac
+
+AM_CONDITIONAL(PLATFORM_WIN32, [test $platform_win32 = yes])
+
+# Output files
 AC_CONFIG_FILES([
        libreptool.pc
        Makefile