On 10/05/2010 04:49 AM, Jim Meyering wrote:
Thus, technically we must now remember that for each new
@pragma_system_hea...@-using .in.h file, we must also use @pragma_colu...@.

That deserves a syntax-check rule in Makefile.

Makes sense to me.


I've added this:
+sc_pragma_columns:
+       if test -d .git; then                                           \
+          git ls-files|grep '\.in\.h$$'                                        
\

Hmm - in coreutils' case where gnulib is a submodule, 'git ls-files' doesn't recurse into the submodule, so you won't have any coverage of the *.in.h files when running 'make syntax-check' in coreutils. And I'm not sure how often, if it is even possible, that 'make syntax-check' gets run directly on gnulib. Does this rule need a bit of tweaking to ensure that it visits gnulib files even when they don't belong to the VCS of the project that included gnulib as a submodule?

--
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Reply via email to