X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=Makefile;fp=Makefile;h=ffee659b0eb5f4ccf2921647838a16a66c2f6c69;hp=4ca74a3ff25a223140d6022fa1d5769393f53bd0;hb=c4302656123e8c8bc8120400dc266f4acac5a16e;hpb=42b0409f8e27a3e9008b5735f397e67152893cfa diff --git a/Makefile b/Makefile index 4ca74a3f..ffee659b 100644 --- a/Makefile +++ b/Makefile @@ -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 ""