X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Flink-warning;h=935f66a39052ef766e57c6dfd1cda66847a49783;hb=84e7e349505e6961cc62fded69ba277474cc3d35;hp=970ad55362d40bd2aa3398561f66ddb8938e55a9;hpb=c0b678994b1504e632eb5044defd5286ff22a633;p=gnulib.git diff --git a/modules/link-warning b/modules/link-warning index 970ad5536..935f66a39 100644 --- a/modules/link-warning +++ b/modules/link-warning @@ -1,6 +1,9 @@ Description: A C macro for emitting link time warnings. +Applicability: +all + Files: build-aux/link-warning.h @@ -9,13 +12,18 @@ Depends-on: configure.ac: Makefile.am: +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. + BUILT_SOURCES += link-warning.h # The link-warning.h that gets inserted into generated .h files is the same as # build-aux/link-warning.h, except that it has the copyright header cut off. link-warning.h: $(top_srcdir)/build-aux/link-warning.h $(AM_V_GEN)rm -f $@-t $@ && \ - cat $(top_srcdir)/build-aux/link-warning.h \ - | sed -e '1,/www\.gnu\.org\/licenses/d' | sed -e '1d' \ + sed -n -e '/GL_LINK_WARNING/,$$p' \ + < $(top_srcdir)/build-aux/link-warning.h \ > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += link-warning.h link-warning.h-t