Move more reindent settings into variables
authorTom Yu <tlyu@mit.edu>
Fri, 6 Nov 2009 18:53:31 +0000 (18:53 +0000)
committerTom Yu <tlyu@mit.edu>
Fri, 6 Nov 2009 18:53:31 +0000 (18:53 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23134 dc483132-0cff-0310-8789-dd5450dbe970

src/Makefile.in

index 3a5f267a6885856f682c78a98ef7acb25da37d51..67b6cd2102a8b63f93048afc386665f25a45cb6b 100644 (file)
@@ -660,6 +660,14 @@ XARGS = xargs
 EMACS = emacs
 PYTHON = python
 
+INDENTDIRS = \
+       clients \
+       kadmin \
+       kdc \
+       lib/kadm5 \
+       lib/kdb \
+       lib/krb5
+
 BSDFILES = \
        kadmin/cli/strftime.c \
        kadmin/server/ipropd_svc.c \
@@ -696,18 +704,11 @@ mark-cstyle:: mark-cstyle-krb5 mark-cstyle-bsd
 
 mark-cstyle-krb5::
        (cd $(SRCTOP) && \
-       $(FIND) \
-       clients \
-       lib/kadm5 \
-       lib/kdb \
-       lib/krb5 \
-       kadmin \
-       kdc \
-       \( $(EXCLUDES) \) -prune -o \
+       $(FIND) $(INDENTDIRS) \( $(EXCLUDES) \) -prune -o \
        -name '*.[ch]' \
        -print0 | $(XARGS) -0 $(PYTHON) util/krb5-mark-cstyle.py \
        --cstyle=krb5)
 
 mark-cstyle-bsd::
-       (cd $(SRCTOP) && \
-       $(PYTHON) util/krb5-mark-cstyle.py --cstyle=bsd $(BSDFILES))
+       (cd $(SRCTOP) && $(FIND) $(BSDFILES) -print0 | $(XARGS) -0 \
+       $(PYTHON) util/krb5-mark-cstyle.py --cstyle=bsd)