summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorNikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>2020-03-22 23:29:51 +0530
committerNikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>2020-03-22 23:29:51 +0530
commit13c0df80dca59ce2ef3ec125b08c5b6ea485535c (patch)
tree8303bf38f1e6a027d3b2fcfe61572a7255175b6d /configure
parent1fd3148713def5fe72ff6844a33e4fc896a80780 (diff)
downloadfreetype2-13c0df80dca59ce2ef3ec125b08c5b6ea485535c.tar.gz
[docs] Fix building docs if `srcdir' != `builddir'.
`docs/reference/*' was moved one directory up in commit 237fed6. * builds/unix/unix-def.in (PIP): Remove variable. * configure: Create `docs' directory and copy assets from `docs/markdown'. * docs/README: Output directory is `reference'.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index 6e7b03c9c..ac91a8e43 100755
--- a/configure
+++ b/configure
@@ -94,10 +94,10 @@ inode_src=`ls -id $abs_ft2_dir | awk '{print $1}'`
inode_dst=`ls -id $abs_curr_dir | awk '{print $1}'`
if test $inode_src -ne $inode_dst; then
- if test ! -d reference; then
- mkdir reference
+ if test ! -d docs; then
+ mkdir docs
echo "Copying documentation assets"
- cp -R $abs_ft2_dir/docs/reference/markdown $abs_curr_dir/reference
+ cp -R $abs_ft2_dir/docs/markdown $abs_curr_dir/docs
fi
if test ! -r $abs_curr_dir/modules.cfg; then
echo "Copying \`modules.cfg'"
@@ -107,7 +107,7 @@ if test $inode_src -ne $inode_dst; then
echo "TOP_DIR := $abs_ft2_dir" > Makefile
echo "OBJ_DIR := $abs_curr_dir" >> Makefile
echo "OBJ_BUILD := \$(OBJ_DIR)" >> Makefile
- echo "DOC_DIR := \$(OBJ_DIR)/reference" >> Makefile
+ echo "DOC_DIR := \$(OBJ_DIR)/docs" >> Makefile
echo "FT_LIBTOOL_DIR := \$(OBJ_DIR)" >> Makefile
echo "ifndef FT2DEMOS" >> Makefile
echo " include \$(TOP_DIR)/Makefile" >> Makefile