build: Fix bsdiff Makefile circular dependency
authorDan Nicholson <nicholson@endlessm.com>
Mon, 16 Oct 2017 16:24:16 +0000 (16:24 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 16 Oct 2017 16:40:11 +0000 (16:40 +0000)
The intended use was to have the .am.inc generated from the .am like the
libglnx one. Without this, make was detecting a circular dependency and
dropping the rule:

  make: Circular bsdiff/Makefile-bsdiff.am.inc <- bsdiff/Makefile-bsdiff.am.inc dependency dropped.

Closes: #1276
Approved by: jlebon

Makefile.am

index 48d0830f2d3d719aa1553c9ca5da47614d930413..7f913ab5fd3866559e1e92c7b5136517d51c33d2 100644 (file)
@@ -106,7 +106,7 @@ libbsdiff_srcpath := $(srcdir)/bsdiff
 libbsdiff_cflags := $(OT_DEP_GIO_UNIX_CFLAGS) "-I$(bsdiff_srcpath)"
 libbsdiff_libs := $(OT_DEP_GIO_UNIX_LIBS)
 # See the comment for the similar libglnx bit above
-$(srcdir)/bsdiff/Makefile-bsdiff.am.inc: $(srcdir)/bsdiff/Makefile-bsdiff.am.inc
+$(srcdir)/bsdiff/Makefile-bsdiff.am.inc: $(srcdir)/bsdiff/Makefile-bsdiff.am
        sed -e 's,$(libbsdiff_srcpath),bsdiff,g' < $< > $@
 include bsdiff/Makefile-bsdiff.am.inc
 EXTRA_DIST += bsdiff/Makefile-bsdiff.am