diff options
author | Will Estes <wlestes@users.sourceforge.net> | 2002-08-27 18:05:07 +0000 |
---|---|---|
committer | Will Estes <wlestes@users.sourceforge.net> | 2002-08-27 18:05:07 +0000 |
commit | 1dc652849525bdce070d741fbce3c0cc40c81ed2 (patch) | |
tree | 06a675af41c2fdd55f4021d2781c454008b2f601 /Makefile.am | |
parent | e3a27d6adc5a9d0e34ec369051053d5c444cff3a (diff) |
touch up the indent targeet; it's ready for production use now
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am index b302a6a..4d80304 100644 --- a/Makefile.am +++ b/Makefile.am @@ -37,6 +37,7 @@ YFLAGS = -d ACLOCAL_AMFLAGS = -I m4 help2man = @HELP2MAN@ m4 = @M4@ +indent = @INDENT@ AUTOMAKE_OPTIONS = \ readme-alpha \ @@ -177,13 +178,12 @@ indentfiles = buf.c ccl.c dfa.c ecs.c flexdef.h gen.c libmain.c \ tblcmp.c yylex.c indent: - echo "indent target is not activated."; exit 1 - test -f .indent.pro - indent --version | grep GNU + if [ -f .indent.pro ] ; then \ for f in $(indentfiles);\ do\ echo indenting $$f ;\ - indent < $$f >/dev/null && indent $$f || echo $$f FAILED ;\ - done + $(indent) < $$f >/dev/null && indent $$f || echo $$f FAILED to indent ;\ + done \ + fi .PHONY: ChangeLog tags indent |