[Bug 74570] New: Custom makefiles project doesn't support "GNUmakefile" file name

Lukasz Wojtylak rufio at veneda.pl
Sun Feb 8 14:44:03 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=74570      
           Summary: Custom makefiles project doesn't support "GNUmakefile"
                    file name
           Product: kdevelop
           Version: 3.0.0
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-devel at kdevelop.org
        ReportedBy: rufio at veneda.pl


Version:           3.0.0 (using KDE KDE 3.2.0)
Installed from:    Compiled From Sources
Compiler:          gcc-3.3.1 
OS:          Linux

Custom makefiles project should allow also "GNUmakefile" as the make file name. Here's a simple patch to the file buildtools/custommakefiles/customprojectpart.cpp:

--- customprojectpart.cpp.orig	2004-01-17 13:57:20.000000000 +0100
+++ customprojectpart.cpp	2004-02-08 14:23:01.000000000 +0100
@@ -503,9 +503,9 @@
     bool ant = DomUtil::readEntry(dom, "/kdevcustomproject/build/buildtool") == "ant";
 
     if (!ant) {
-        QFileInfo fi(dir + "/Makefile");
-	QFileInfo fi2(dir + "/makefile");
-        if (!fi.exists() && !fi2.exists()) {
+        if (!QFile::exists(dir + "/Makefile") && !QFile::exists(dir + "/makefile") &&
+	      !QFile::exists(dir + "/GNUmakefile"))
+	{
             KMessageBox::information(mainWindow()->main(),
                                      i18n("There is no Makefile in this directory."));
             return;




More information about the KDevelop-devel mailing list