Re: The /tmp and modules_install saga

Andreas Schwab (schwab@issan.informatik.uni-dortmund.de)
09 Oct 1998 11:01:20 +0200


"Peter T. Breuer" <ptb@it.uc3m.es> writes:

|> > ALLMODS=`ls *.o`; \
|>
|> People already commented that that should be something like
|>
|> ALLMODS="`echo *.o`"
|>
|> The double quotes are important. This command will fail otherwise.

The double quotes are useless. Check the Bash manpage and look up
variable assignments.

|> > echo -n " $$nd"; \
|> > mkdir -p $$MODLIB/$$nd; \
|>
|> I'm retarded. I don't know what -p does for mkdir!

The -p switch tells mkdir to make sure that all parent directories exist
as well.

|> > for m in `cat $$d`; do \
|> > ALLMODS=`echo $$ALLMODS | sed "s/$$m//"`; \
|>
|> ?? Why are you changing ALLMODS? Oh. I see, you're subtracting the modules
|> listed in $d. BTW there's two syntactic mistakes here. It should be
|>
|> ALLMODS="`echo $$ALLMODS | sed -e 's/'$$m'//'`"; \
|>
|> (and I'm not even thinking about the makefile quoting!)

Useless use of quotes again, twice. The orignal line is perfectly ok.

|> Does anybody understand VPATH? I'm trying to use it, with no luck at all. It
|> doesn't seem to be invoked in implicit (.c.o style) rules.

VPATH works well if used properly. The biggest problem is that may people
lie to make by creating files that don't match exactly the target name.

-- 
Andreas Schwab                                      "And now for something
schwab@issan.cs.uni-dortmund.de                      completely different"
schwab@gnu.org

- 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/