bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

indentation in Makefile


From: Bruno Haible
Subject: indentation in Makefile
Date: Sun, 13 Nov 2011 19:22:32 +0100
User-agent: KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; )

Apparently GNU make works also with spaces instead of tabs in continuation
lines of rule commands? But nevertheless it's more consistent to use tabs
here for indentation.


2011-11-13  Bruno Haible  <address@hidden>

        Makefile: Tweak indentation.
        * Makefile: Use tab as first character in every line that contains rule
        commands.

--- Makefile.orig       Sun Nov 13 19:17:59 2011
+++ Makefile    Sun Nov 13 19:17:46 2011
@@ -35,8 +35,8 @@
 sc_prohibit_leading_TABs:
        if test -d .git; then                                           \
          git grep -l '^ *      ' lib m4 tests                          \
-            | grep -Ev '^lib/reg|Makefile|test-update-copyright'       \
-            | grep .                                                   \
+           | grep -Ev '^lib/reg|Makefile|test-update-copyright'        \
+           | grep .                                                    \
            && { printf '*** %s\n' 'indent with spaces, not TABs;'      \
                 1>&2; exit 1; } || :                                   \
        else :; fi
@@ -101,11 +101,11 @@
 # *.c files are consistently cpp indented.
 sc_cpp_indent_check:
        ./gnulib-tool --extract-filelist \
-            $$(cd ./modules; grep -ilrE '(meyering|blake)' .) \
-          | sort -u \
-          | grep '\.c$$' \
-          | grep -vE '/(stdio-(read|write)|getloadavg)\.c$$' \
-          | xargs cppi -c
+           $$(cd ./modules; grep -ilrE '(meyering|blake)' .) \
+         | sort -u \
+         | grep '\.c$$' \
+         | grep -vE '/(stdio-(read|write)|getloadavg)\.c$$' \
+         | xargs cppi -c
 
 # Ensure that the list of symbols checked for by the
 # sc_prohibit_intprops_without_use rule match those in the actual file.
@@ -115,7 +115,7 @@
        i=lib/intprops.h; \
        diff -u <(perl -lne '/^# *define ([A-Z]\w+)\(/ and print $$1' $$i|fmt) \
          <(sed -n /^_intprops_name/,/^_intprops_syms_re/p top/maint.mk \
-            |sed '/^_/d;s/^  //;s/     *\\$$//')
+           |sed '/^_/d;s/^  //;s/      *\\$$//')
 
 # Ensure that the copyright statements in files and in the module descriptions
 # are consistent.
-- 
In memoriam Bruno Binnebesel <http://de.wikipedia.org/wiki/Bruno_Binnebesel>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]