questionable feature in FreeBSD pmake

From: Dan Strick (strick_at_covad.net)
Date: 10/28/04

  • Next message: Peter Pentchev: "Re: questionable feature in FreeBSD pmake"
    Date: Thu, 28 Oct 2004 03:23:02 -0700 (PDT)
    To: freebsd-hackers@freebsd.org
    
    

    I just spent a *very* frustrating hour trying to figure out why the
    FreeBSD make program was invoking all commands to make things in a
    subdirectory named "obj". I eventually discovered this gem in the
    make man page:

        In addition, make sets or knows about the following internal
        variables or environment variables:

        ...

        .OBJDIR A path to the directory where the targets are built. At
                    startup, make searches for an alternate directory to place
                    target files. It will attempt to change into this special
                    directory and will search this directory for makefiles not
                    found in the current directory. The following directories
                    are tried in order:

                    1. ${MAKEOBJDIRPREFIX}/`pwd`
                    2. ${MAKEOBJDIR}
                    3. obj.${MACHINE}
                    4. obj
                    5. /usr/obj/`pwd`

    I believe this feature is a real botch because it is magic, unintuitive,
    and so *exceedingly* easy to invoke by mistake. It happens that I really
    really want to have a subdirectory named "obj" and I really really don't
    want to cd into it. The only workaround seems to be to define the
    MAKEOBJDIR variable and that would be disgustingly ugly because it makes
    no obvious sense unless you are aware of the magic feature. Rules 3-5
    look like they were invented without careful consideration to avoid the
    minor effort required to use one of the first 2 rules.

    Does anyone know where this feature came from? The .OBJDIR variable was
    recognized by the pmake distributed with 4.4 BSD, but the man page for
    that version of make does not mention the gratuitous magic rules for
    changing the make working directory. The older make program found in
    4.3 BSD does not seem to use the .OBJDIR variable at all.

    This feature is not mentioned in the pmake tutorial found in
    /usr/share/doc/psd/12.make. Is it a FreeBSD-ism?

    Dan Strick
    strick@covad.net
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Peter Pentchev: "Re: questionable feature in FreeBSD pmake"

    Relevant Pages

    • Re: interface odd behavior
      ... somebody change Draw to something else in feature, except he explicitly cast ... obj to Ishape in code. ...
      (microsoft.public.dotnet.languages.vb)
    • Re: Not very familiar with LOOPs in gnuplot?
      ... feature is what you want. ... The "borders.dem" demo contains an example of such a reread loop. ... perl, python, etc, and use that to call gnuplot for the actual plotting. ... Could I call gnuplot somehow in the space where the [commands] ...
      (comp.graphics.apps.gnuplot)
    • Re: Look Up Missing in Word 2007 Beta
      ... "Patrick Schmid" wrote: ... You need to make sure that the field Choose Commands From says "Commands ... Your first two options require several extra clicks to invoke a feature ... I have added the Research Pane to the Quick Access Toolbar. ...
      (microsoft.public.word.docmanagement)
    • Re: "remove blank lines"+"Mail Merge"
      ... commands from All Commands, locate Mail Merge Helper and drag it to the right hand column) and using the third button, or by using VBA to issue ... I tried both and I got 'closer' but MS Word 2007 wouldn't always line the data up properly and other times it would throw an additional '$' on the line. ... I've seen several posts about a feature that perhaps other versions of MS Word had and either 2007 hides it or I just can't find it. ... The feature I wanted to try was a switch that said "Don't print blank lines". ...
      (microsoft.public.word.mailmerge.fields)
    • Re: Look Up Missing in Word 2007 Beta
      ... You need to make sure that the field Choose Commands From says "Commands Not In Ribbon". ... Your first two options require several extra clicks to invoke a feature ... I have added the Research Pane to the Quick Access Toolbar. ... looked carefully but I can't find a "Look Up" command on the lists of ...
      (microsoft.public.word.docmanagement)