win32.mak: add 'make update-exports' target
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 15 Jan 2013 12:48:45 +0000 (12:48 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 15 Jan 2013 12:50:16 +0000 (12:50 +0000)
win32.mak

index c343a04..30e347e 100644 (file)
--- a/win32.mak
+++ b/win32.mak
@@ -51,11 +51,17 @@ check-exports:
        if test $$fail != 0; then \
          echo '-----------------------------------------------------------'; \
          echo 'Run this to update the .def files:'; \
-         echo 'make check-exports 2>&1 | patch -p1'; \
+         echo 'make update-exports'; \
          echo '-----------------------------------------------------------'; \
        fi; \
        exit $$fail
 
+update-exports:
+       make check-exports 2>&1 | patch -p1
+       git add win32/common/libgst*.def
+       git diff --cached -- win32/common/
+       echo '^^^--- updated and staged changes above'
+
 # complain about nonportable printf format strings (%lld, %llu, %zu etc.)
 check-nonportable-print-format:
        @fail=0 ; \