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