Index: make-3.80/ChangeLog from Dave Hylands Allows leading spaces instead of tabs for recipies. Index: make-3.80/main.c =================================================================== --- make-3.80/main.c 2002-08-09 18:27:17.000000000 -0700 +++ make-3.80/main.c 2005-03-08 12:43:01.334835300 -0800 @@ -2690,5 +2690,9 @@ precede, precede, precede); - printed_version = 1; +#if 1 /* DHylands - Fix to allow spaces at start of line as well as tabs */ + printf("%sAllows spaces as well as tabs on command lines\n", precede, precede ); +#endif + + printed_version = 1; /* Flush stdout so the user doesn't have to wait to see the Index: make-3.80/read.c =================================================================== --- make-3.80/read.c 2002-10-03 19:13:42.000000000 -0700 +++ make-3.80/read.c 2005-03-08 12:43:12.308686500 -0800 @@ -501,4 +501,48 @@ continue; +#if 1 /* DHylands - Fix to allow spaces at start of line as well as tabs */ + + if ( line[0] == ' ' ) + { + /* + * If the line is completely blank, then leave it be. + */ + + for ( p = line; *p == ' '; p++ ) + ; + + if (( *p == '\0' ) || ( *p == '\n' )) + { + /* Completely blank line */ + + continue; + } + + if (( strncmp( p, "ifdef", 5 ) == 0 ) + || ( strncmp( p, "ifndef", 6 ) == 0 ) + || ( strncmp( p, "ifeq", 4 ) == 0 ) + || ( strncmp( p, "ifneq", 5 ) == 0 ) + || ( strncmp( p, "else", 4 ) == 0 ) + || ( strncmp( p, "endif", 5 ) == 0 ) + || ( strncmp( p, "endef", 5 ) == 0 ) + || ( strncmp( p, "define", 6 ) == 0 ) + || ( strncmp( p, "override", 8 ) == 0 ) + || ( strncmp( p, "export", 6 ) == 0 ) + || ( strncmp( p, "unexport", 8 ) == 0 ) + || ( strncmp( p, "vpath", 5 ) == 0 ) + || ( strncmp( p, "include", 7 ) == 0 ) + || ( strncmp( p, "-include", 8 ) == 0 ) + || ( strncmp( p, "sinclude", 8 ) == 0 )) + { + /* + * Leave the space at the beginning of the line + */ + } + else + { + line[0] = '\t'; + } + } +#endif linelen = strlen (line);