[Scummvm-cvs-logs] CVS: scummvm configure,1.71,1.72

Max Horn fingolfin at users.sourceforge.net
Sat Feb 21 08:08:01 CET 2004


Update of /cvsroot/scummvm/scummvm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15068

Modified Files:
	configure 
Log Message:
Create a simple Makefile when building outside the source tree (Needs improvement, but works well enough in most cases)

Index: configure
===================================================================
RCS file: /cvsroot/scummvm/scummvm/configure,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -d -r1.71 -r1.72
--- configure	21 Feb 2004 15:17:16 -0000	1.71
+++ configure	21 Feb 2004 15:55:26 -0000	1.72
@@ -843,3 +843,21 @@
 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





More information about the Scummvm-git-logs mailing list