diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -843,3 +843,21 @@ OBJS += $OBJS DEFINES += $DEFINES LDFLAGS += $LDFLAGS EOF + +# +# Create a custom Makefile when building outside the source tree +# TODO: Add a better check than just looking for 'Makefile' +# +if test ! -f Makefile ; then +_srcdir=`dirname $0` +echo "Creating Makefile" + +cat > Makefile << EOF +# -------- Generated by configure ----------- +srcdir = $_srcdir +vpath %.cpp \$(srcdir) +vpath %.h \$(srcdir) +include \$(srcdir)/Makefile +EOF + +fi |