summaryrefslogtreecommitdiffstats
path: root/build/fastgen.sh
diff options
context:
space:
mode:
authorSascha Schumann <sascha@apache.org>2000-04-30 17:50:42 +0200
committerSascha Schumann <sascha@apache.org>2000-04-30 17:50:42 +0200
commit6c2a300d10eea63d4e04cfe59035efe61f5dad08 (patch)
treed3e4e8768310c75a9803650232b28575437ad38a /build/fastgen.sh
parentWe want to build in the build dir, not the src dir. (diff)
downloadapache2-6c2a300d10eea63d4e04cfe59035efe61f5dad08.tar.xz
apache2-6c2a300d10eea63d4e04cfe59035efe61f5dad08.zip
Always create the target directory, if it does not exist. Also use the
Makefile template from the source tree. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85110 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/fastgen.sh')
-rwxr-xr-xbuild/fastgen.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/fastgen.sh b/build/fastgen.sh
index f7c2f5614c..51779ce73c 100755
--- a/build/fastgen.sh
+++ b/build/fastgen.sh
@@ -74,6 +74,7 @@ for makefile in $@; do
echo "creating $makefile"
# portable dirname
dir=`echo $makefile|sed 's%[^/][^/]*$%%'`
+ test -d "$dir/" || $mkdir_p "$dir/"
(cat <<EOF
top_srcdir = $top_srcdir
@@ -82,6 +83,6 @@ srcdir = $top_srcdir/$dir
builddir = $top_builddir/$dir
VPATH = $top_srcdir/$dir
EOF
-)| cat - $makefile.in > $makefile
+)| cat - $top_srcdir/$makefile.in > $makefile
done