Fix bug #3727: race condition on install
authorChristian Hesse <mail@eworm.de>
Mon, 14 Nov 2016 12:08:29 +0000 (13:08 +0100)
committerRicardo Mones <ricardo@mones.org>
Mon, 14 Nov 2016 17:45:16 +0000 (18:45 +0100)
Directories were installed in parallel to icons, triggering a race
condition. So make sure we have correct ordering.

Makefile

index b71142f..0393e0f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -51,7 +51,7 @@ install-icons-dirs:
                install -d ${DESTDIR}${THEMEDIR}/$${res}x$${res}/apps; \
        done
 
-install-icons:
+install-icons: install-icons-dirs
        for res in ${ICONRES}; do \
                install -m 0644 icons/${NAME}-$${res}.png ${DESTDIR}${THEMEDIR}/$${res}x$${res}/apps/${NAME}.png; \
        done