summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makeconf6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makeconf b/Makeconf
index 81f9ce37..fb79f927 100644
--- a/Makeconf
+++ b/Makeconf
@@ -40,7 +40,11 @@ endif
ifndef srcdir
# We are building in the source directory itself.
srcdir = .
-top_srcdir = $(..:%/=%)
+ifeq (.,$(dir))
+top_srcdir = .
+else
+top_srcdir = ..
+endif
endif
# Include the configure-generated file of parameters.