diff options
author | Carl Worth <cworth@cworth.org> | 2011-03-10 11:29:13 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2011-03-10 11:29:13 -0800 |
commit | c4302656123e8c8bc8120400dc266f4acac5a16e (patch) | |
tree | c6bb41359eb27a76efdc15c6ffa791efed1438a9 /Makefile | |
parent | 42b0409f8e27a3e9008b5735f397e67152893cfa (diff) |
build: Fix a plain "make" to automatically run configure.
The recent change to support non-source-directory builds broke this case.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -16,8 +16,13 @@ extra_cflags := extra_cxxflags := # Get settings from the output of configure by running it to generate -# Makefile.config if it doesn't exist yet. And add Makefile.config to -# our global dependency list. +# Makefile.config if it doesn't exist yet. + +# If Makefile.config doesn't exist, then srcdir won't be +# set. Conditionally set it (assuming a plain srcdir build) so that +# the rule to generate Makefile.config can actually work. +srcdir ?= . + include Makefile.config Makefile.config: $(srcdir)/configure @echo "" |