GNU Make and GNU Indent
The Makefile depends on GNU tools and the user may choose the location
committer: Markus Bröker <mbroeker@largo.homelinux.org>
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,9 @@
LDFLAGS = -L/usr/lib
RM = rm -f
FIND = find
+ MAKE = make
+ INDENT = indent
+ ERASER = eraser
ifeq ("$(PROFILER)", "linux")
PROF = -fprofile-arcs -ftest-coverage -pg
@@ -351,9 +354,9 @@
beauty:
ifdef FIND
- $(FIND) . -name '*.[ch]' -exec indent {} \;
- $(FIND) . -name '*.[ch]' -exec eraser {} \;
- $(FIND) . -name '*.java' -exec eraser {} \;
- $(FIND) . -name 'Makefile*' -exec eraser {} \;
+ $(FIND) . -name '*.[ch]' -exec $(INDENT) {} \;
+ $(FIND) . -name '*.[ch]' -exec $(ERASER) {} \;
+ $(FIND) . -name '*.java' -exec $(ERASER) {} \;
+ $(FIND) . -name 'Makefile*' -exec $(ERASER) {} \;
endif
- @make clean
+ @$(MAKE) clean