]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: ensure atom-glue.h is built first
authorVincent Bernat <vincent@bernat.im>
Wed, 23 Mar 2016 19:48:35 +0000 (20:48 +0100)
committerVincent Bernat <vincent@bernat.im>
Wed, 23 Mar 2016 19:48:35 +0000 (20:48 +0100)
Forcing direct dependencies is incompatible with VPATH. Use
BUILT_SOURCES instead.

src/lib/Makefile.am

index 7418513dcddab935690d86cea556da8e78903d1b..96175c16f9c4366cfa36ee70aeb32003d524ace9 100644 (file)
@@ -19,9 +19,9 @@ liblldpctl_la_SOURCES = \
        $(NON_ATOM_FILES) \
        $(ATOM_FILES)
 nodist_liblldpctl_la_SOURCES = atom-glue.h atom-glue.c
+BUILT_SOURCES = atom-glue.h
 liblldpctl_la_LIBADD  = $(top_builddir)/src/libcommon-daemon-lib.la libfixedpoint.la
 
-$(NON_ATOM_FILES):: atom-glue.h
 atom-glue.h: $(ATOM_FILES) Makefile
        $(AM_V_GEN)(cat $^ | \
                $(SED) -n 's+^ATOM_BUILDER_REGISTER(\([^,]*\), *\([0-9]*\)).*+\2 \1+p' | \