manpagez: man pages & more
info autoconf
Home | html | info | man
[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

12.16 The ‘obj/’ Subdirectory and Make

Never name one of your subdirectories ‘obj/’ if you don’t like surprises.

If an ‘obj/’ directory exists, BSD make enters it before reading the makefile. Hence the makefile in the current directory is not read.

$ cat Makefile
all:
        echo Hello
$ cat obj/Makefile
all:
        echo World
$ make      # GNU make
echo Hello
Hello
$ pmake     # BSD make
echo World
World

This document was generated on April 26, 2012 using texi2html 5.0.

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.