Re: The /tmp and modules_install saga

Peter T. Breuer (ptb@it.uc3m.es)
Wed, 7 Oct 1998 19:07:55 +0200 (MET DST)


"A month of sundays ago Nicholas J. Leon wrote:"
>
> Actually, if we put MODLIB not under the rule for modules_install, but in
> the "main" part of the makefile, wouldn't that satisfy the user being able
> to redefine it? ala:
>
> MODLIB=$(INSTALL_MOD_PATH) ... etc ...
>
> modules_install:
> blah ....

Yes. Fine. Command line and env overrides internal defs in make? I
can never remember, no matter how many times I check.

> # I'm retarded. I don't know what -p does for mkdir!
>
> Creates the parents if necessary :)

Bet that's gnu and not posix. If it is posix, I'll pinch it.

> # listed in $d. BTW there's two syntactic mistakes here. It should be
> #
> # ALLMODS="`echo $$ALLMODS | sed -e 's/'$$m'//'`"; \
>
>
> Hmmm. It worked for me :) Doesn't mean its correct, just that it worked :)

Without the quotes, it would expand to

ALLMODES=a.o b.o c.o ...

which means: (1) set environment variable ALLMODES to a.o, (2) execute
command b.o with args c.o ...

> I mean, if *I* could do it (albiet slightly broken) no doubt it can be
> done much better! :)

Yes .. the fuss about files in tmp is trvial to remove by not making
any files in the first place, and that is the correct fix.

Peter

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