From: Will Estes Date: Tue, 27 Aug 2002 18:05:07 +0000 (+0000) Subject: touch up the indent targeet; it's ready for production use now X-Git-Tag: flex-2-5-16~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1dc652849525bdce070d741fbce3c0cc40c81ed2;p=flex touch up the indent targeet; it's ready for production use now --- 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