diff Makefile @ 176:6e1fe18b30b7

Fixed to run perltidy correctly
author Steve Kemp <steve@steve.org.uk>
date Tue, 01 Apr 2008 20:48:15 +0100
parents 4b0b1944e6bb
children c078b940bf3b
line wrap: on
line diff
--- a/Makefile	Tue Apr 01 20:47:13 2008 +0100
+++ b/Makefile	Tue Apr 01 20:48:15 2008 +0100
@@ -97,7 +97,10 @@
 #  Tidy the code
 #
 tidy:
-	perltidy -b -nt -bt=2 -sbt=1 -bl  -mbl=3 -sbl -bbs -bbb -anl  -lp bin/chronicle
+	if [ -x /usr/bin/perltidy ]; then \
+	perltidy -b -nt -bt=2 -sbt=1 -bl  -mbl=3 -sbl -bbs -bbb -anl  -lp bin/chronicle ;\
+	perltidy -b -nt -bt=2 -sbt=1 -bl  -mbl=3 -sbl -bbs -bbb -anl  -lp cgi-bin/comments.cgi \
+	; fi
 
 
 #