16 BUILT_SOURCES += $(POLL_H)
18 # We need the following in order to create <poll.h> when the system
20 poll.h: poll.in.h $(CXXDEFS_H) $(WARN_ON_USE_H)
21 $(AM_V_GEN)rm -f $@-t $@ && \
22 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
23 sed -e 's|@''GNULIB_POLL''@|$(GNULIB_POLL)|g' \
24 -e 's|@''HAVE_POLL''@|$(HAVE_POLL)|g' \
25 -e 's|@''REPLACE_POLL''@|$(REPLACE_POLL)|g' \
26 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
27 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
28 < $(srcdir)/poll.in.h; \
31 MOSTLYCLEANFILES += poll.h poll.h-t
40 Paolo Bonzini, Bruno Haible