89451 20-AUG 21:23 Programmers Den
RE: Make command (Re: Msg 89279)
From: DBREEDING To: BOISY
> Note that all is a pseudo target, in that there is no ‘all’ program being
> made. So each time make is run on the makefile, it checks the dates
> of del, os9gen and ainst del.r, os9gen.r and mfree.r respectively.
Hmm… hadn’t thought of this technique.. I’ve never utilized “make” to
its fullest. Now, if you didn’t have the “all” specifier, then you
could make just one of the programs by specifying _THAT_ program on the
command line, right??
— David Breeding –
CompuServe : 72330,2051
Delphi : DBREEDING
*** Sent via CoCo-InfoXpress V1.01 ***
^^^^ ^^^^^^^^^^
89452 20-AUG 21:29 Programmers Den
RE: Make command (Re: Msg 89451)
From: BOISY To: DBREEDING
Yes. You could make one target in a makefile with multiple targets by
saying:
make
I do it all the time with the UUCP package. If I’m working on one program,
I don’t want make to attempt to make everything before it, so adding
the target to the command line makes things move much quicker.
89486 21-AUG 23:42 Programmers Den
RE: Make command (Re: Msg 89452)
From: MITHELEN To: BOISY
Another inpoortant point is, makes default target is always
thefirst target it fines in the makefile, regardless of what that
targets name is.
89536 24-AUG 22:02 Programmers Den
RE: Make command (Re: Msg 89452)
From: DBREEDING To: BOISY
> Yes. You could make one target in a makefile with multiple targets by
> saying:
> make
I thought this was the case. The trick you used to compile all was neat,
though. It may have been documented, but if so, it’s another thing I missed.
— David Breeding –
CompuServe : 72330,2051
Delphi : DBREEDING
*** Sent via CoCo-InfoXpress V1.01 ***
^^^^ ^^^^^^^^^^
89537 24-AUG 22:03 Programmers Den
RE: Make command (Re: Msg 89486)
From: DBREEDING To: MITHELEN
> Another inpoortant point is, makes default target is always
> the first target it fines in the makefile, regardless of what that
> targets name is.
Hmmm… It seems to me that make requires a target on the command line,
at least the MW version (the one I use)… maybe not, but I thought
I’d issued the make command without a target named and got a
“make: cannot find target” (or the like).
— David Breeding –
CompuServe : 72330,2051
Delphi : DBREEDING
*** Sent via CoCo-InfoXpress V1.01 ***
^^^^ ^^^^^^^^^^
89575 27-AUG 13:45 Programmers Den
RE: Make command (Re: Msg 89537)
From: TIMKIENTZLE To: DBREEDING
`Standard’ make behavior is that if no target is given on the command
line, then the FIRST target in the makefile is built. This is why
`all’ is typically the first target in the makefile. Often, `all’
is the second target in the makefile if the makefile builds a lot
of programs. The first target would then be something like `default’
that compiled only a basic collection of the programs. That way,
`make’ with no arguments would build the basic collection, and
`make all’ would build everything.
– Tim (who’s spent a lot of time and energy getting
really hairy Unix makefiles to work on OS9)
89580 27-AUG 17:56 Programmers Den
RE: Make command (Re: Msg 89575)
From: ALWAGNER To: TIMKIENTZLE (NR)
Even though you have received a private thanks in E-mail, I want to say it
again in this public forum. Thanks for the help and clear explanations.