summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2005-02-13 05:46:50 +0000
committerWerner Lemberg <wl@gnu.org>2005-02-13 05:46:50 +0000
commita33bd861d7866579953c990949831d8353c15a8e (patch)
tree501806d09708834cda19a552b6eb73b1a9cc37bb /configure
parent0358b21d8595e0ce6d07947d5f4c6d8e19021992 (diff)
downloadfreetype2-a33bd861d7866579953c990949831d8353c15a8e.tar.gz
* configure: Output more variables to the created Makefile so that
it can be used for ft2demos also (if the FT2DEMOS variable is defined).
Diffstat (limited to 'configure')
-rw-r--r--configure19
1 files changed, 13 insertions, 6 deletions
diff --git a/configure b/configure
index 8621c0e5a..babb946c3 100644
--- a/configure
+++ b/configure
@@ -51,12 +51,19 @@ abs_ft2_dir=`cd "$ft2_dir" && pwd`
if test "$abs_curr_dir" != "$abs_ft2_dir"; then
mkdir reference
- echo "TOP_DIR=$abs_ft2_dir" > Makefile
- echo "OBJ_DIR=$abs_curr_dir" >> Makefile
- echo "OBJ_BUILD=$abs_curr_dir" >> Makefile
- echo "DOC_DIR=$abs_curr_dir/reference" >> Makefile
- echo "LIBTOOL=$abs_curr_dir/libtool" >> Makefile
- echo "include $abs_ft2_dir/Makefile" >> Makefile
+ 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 "LIBTOOL := \$(OBJ_DIR)/libtool" >> Makefile
+ echo "ifndef FT2DEMOS" >> Makefile
+ echo " include \$(TOP_DIR)/Makefile" >> Makefile
+ echo "else" >> Makefile
+ echo " TOP_DIR_2 := \$(TOP_DIR)/../ft2demos" >> Makefile
+ echo " PROJECT := freetype" >> Makefile
+ echo " CONFIG_MK := \$(OBJ_DIR)/config.mk" >> Makefile
+ echo " include \$(TOP_DIR_2)/Makefile" >> Makefile
+ echo "endif" >> Makefile
fi
# call make