Fix for latest functionality of the format script
[freeradius.git] / share / Makefile
index ab342b4..d3b199c 100644 (file)
@@ -3,13 +3,11 @@
 #
 #      $Id$
 #
-.PHONY: format
 
 #
 #  This should only be run by hand, and then sanity checked by hand!
 #
-format: dictionary*
-       @for x in dictionary* ; do \
-               cat $$x | ./format.pl > tmp; \
-               mv tmp $$x; \
+format: $(wildcard dictionary*)
+       @for x in $(wildcard dictionary*) ; do \
+               ./format.pl $$x; \
        done