Blame srcdir.mk

Packit 78deda
# This is the version of srcdir.mk that gets used when you build in
Packit 78deda
# the source tree.  In contrast, when you build in a separate build tree,
Packit 78deda
# you use a version of srcdir.mk that Configure created, which sets SRCDIR
Packit 78deda
# to the location of the source tree.
Packit 78deda
Packit 78deda
# This is designed to be included by the top level make file, with
Packit 78deda
# SRCDIR being passed to all the submakes.  That means that when you
Packit 78deda
# build in a separate build tree, you must build from the top; you
Packit 78deda
# can't go into a subdirectory and type "make".  When you build in the
Packit 78deda
# _source_ tree, local makes work because every local make file checks
Packit 78deda
# whether SRCDIR is set, and if it isn't, sets it with the assumption
Packit 78deda
# that the build directory and source directory are the same.
Packit 78deda
Packit 78deda
SRCDIR = $(CURDIR)