summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-09-23 06:49:50 +0000
committerRoland McGrath <roland@gnu.org>1995-09-23 06:49:50 +0000
commit114065e4c9ff7b1f9500b13781c7ba2268ab0157 (patch)
tree113fe01251bafe1c0b16a484b1ad54e07bb03496
parenta7cf4724335abfbe80632af5504563a26ee28e2c (diff)
(top_srcdir): Define properly in parent directory.
-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.