diff -Naur orig/Makefile edited/Makefile --- orig/Makefile 2004-06-10 17:38:35.000000000 +0200 +++ edited/Makefile 2004-06-10 21:25:39.000000000 +0200 @@ -1167,4 +1167,28 @@ endif # skip-makefile +# Maximum debug selection. +# All modules having #undef DEBUG_XXX will be #define DEBUG_XXX +# .config is synced as well. +# WARNING : Irreversible process +# (06/2004 - FabF) +maxdebug : + @path=""; \ + ls -R | while read line; do \ + entry=`echo $$line | awk '/:$$/'`; \ + if [ ! -z $$entry ]; then \ + path=`echo $$entry | sed s/://g`; \ + else \ + if [ ! -z `echo $$line | awk '/\.c$$/'` ] || [ ! -z `echo $$line | awk '/\.h$$/'` ]; then \ + if [ ! -z "$$line" ]; then \ + sed /DEBUG/s/undef/define/g $$path/$$line > $$path/$$line"tmp"; \ + mv $$path/$$line"tmp" $$path/$$line; \ + echo $$line ; \ + fi \ + fi \ + fi \ + done; \ + sed /DEBUG/s/'# '//g .config > .config.tmp; \ + sed /DEBUG/s/'is not set'/'=y'/g .config.tmp > .config + FORCE: