]> git.lyx.org Git - features.git/commitdiff
remove automake generated Makefiles when using qmake
authorAndré Pönitz <poenitz@gmx.net>
Thu, 16 Aug 2007 19:07:05 +0000 (19:07 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 16 Aug 2007 19:07:05 +0000 (19:07 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19614 a592a061-630c-0410-9148-cb99ea01b6c8

configure.ac

index 30ac13ab273bd41e9729147d56ba470d82fa1da9..e1d5ef5f781139b7b3279158f4c3b85a194856e3 100644 (file)
@@ -447,10 +447,34 @@ AC_CONFIG_FILES([Makefile
 ])
 
 
-test x$with_qmake = xyes && ${srcdir}/development/qmake/doit
+AC_OUTPUT
+
+if test x$with_qmake = xyes ; then
+       echo "CONFIGURE WITH QMAKE ONLY"
+       if test x$srcdir = x ; then
+               echo "ONLY FOR OUT-OF-TREE-BUILDS POSSIBLE"
+       else
+               rm boost/Makefile
+               rm src/client/Makefile
+               rm src/Makefile
+               rm src/tex2lyx/Makefile
+               rm src/support/Makefile
+               rm src/frontends/Makefile
+               rm src/frontends/controllers/Makefile
+               rm src/frontends/qt4/Makefile
+               rm -rf boost/.deps
+               rm -rf src/client/.deps
+               rm -rf src/.deps
+               rm -rf src/tex2lyx/.deps
+               rm -rf src/support/.deps
+               rm -rf src/frontends/.deps
+               rm -rf src/frontends/controllers/.deps
+               rm -rf src/frontends/qt4/.deps
+               ${srcdir}/development/qmake/doit
+       fi
+fi
 
 
-AC_OUTPUT
 # show version information
 echo
 printf "$VERSION_INFO"