2 A C macro for emitting a warning if a function is used.
8 build-aux/warn-on-use.h
16 nodist_pkginclude_HEADERS += warn-on-use.h
18 BUILT_SOURCES += warn-on-use.h
19 # The warn-on-use.h that gets inserted into generated .h files is the same as
20 # build-aux/warn-on-use.h, except that it has the copyright header cut off.
21 warn-on-use.h: $(top_srcdir)/build-aux/warn-on-use.h
22 $(AM_V_GEN)rm -f $@-t $@ && \
23 sed -n -e '/^.ifndef/,$$p' \
24 < $(top_srcdir)/build-aux/warn-on-use.h \
27 MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t
29 WARN_ON_USE_H=warn-on-use.h