build: make install-exec-hooks depend on install-helpersPROGRAMS
authorPhilippe Normand <philn@igalia.com>
Wed, 3 Jun 2015 14:28:44 +0000 (16:28 +0200)
committerLuis de Bethencourt <luis.bg@samsung.com>
Wed, 3 Jun 2015 14:35:11 +0000 (15:35 +0100)
To avoid race conditions where make would try to change ownership and
permissions of the not-yet-installed ptp helper.

libs/gst/helpers/Makefile.am

index 141c2c1..cd9f6ff 100644 (file)
@@ -23,7 +23,7 @@ gst_ptp_helper_CFLAGS = $(GST_OBJ_CFLAGS) $(GIO_CFLAGS)
 gst_ptp_helper_LDADD = $(GST_OBJ_LIBS) $(GIO_LIBS) $(CAP_LIBS)
 endif
 
-install-exec-hook:
+install-exec-hook: install-helpersPROGRAMS
 if HAVE_PTP
 if HAVE_PTP_HELPER_SETUID
        chown root $(DESTDIR)$(helpersdir)/gst-ptp-helper