Messages in this thread | | | Date | Wed, 31 Mar 1999 09:57:14 -0500 | From | Arvind Sankar <> | Subject | Re: Linux Makefile uses 'ls', causes problems with color-ls (PATCH) |
| |
On Wed, Mar 31, 1999 at 08:33:29AM -0500, Richard B. Johnson wrote: > On Wed, 31 Mar 1999, Trevor Johnson wrote: > > > > - ls *.o > $$MODLIB/.allmods; \ > > > + rm -f $$MODLIB/.allmods; \ > > > + for x in *.o; do echo $$x>>$$MODLIB/.allmods; done; \ > > > > ...or just: > > > > echo *.o >$$MODLIB/.allmods; \ > > Well I tried that but there is a problem if there are no '.o' files > in the directory (you get *.o echoed).
the for loop will do the same. The ls will work... (except for printing a funky error message)
-- arvind
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |