From 1dc652849525bdce070d741fbce3c0cc40c81ed2 Mon Sep 17 00:00:00 2001 From: Will Estes Date: Tue, 27 Aug 2002 18:05:07 +0000 Subject: [PATCH] touch up the indent targeet; it's ready for production use now --- Makefile.am | 10 +++++----- 1 file 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 -- 2.50.1