2
KDevelop Autotools Support
3
Copyright (c) 2005 by Matt Rogers <mattr@kde.org>
5
***************************************************************************
7
* This program is free software; you can redistribute it and/or modify *
8
* it under the terms of the GNU General Public License as published by *
9
* the Free Software Foundation; either version 2 of the License, or *
10
* (at your option) any later version. *
12
***************************************************************************
14
#ifndef MAKEFILEHANDLER_H
15
#define MAKEFILEHANDLER_H
18
* This class is responsible for taking the data from the Makefile.am parser
19
* and providing various data list view items can use in the automake manager
34
* Parse a folder that has supported makefiles in it. The following files
35
* will be looked for in the following order:
40
* \param folder, the folder to parse
41
* \param recursive if true, subfolders will be parsed - defaults to true
43
void parse( const QString& folder, bool recursive = true );
46
* Get the AST for a certain path
47
* \param folderPath the path of the folder to get an AST for
48
* \return the AST that represents a particular folder
50
AutoTools::ProjectAST* astForFolder( const QString& folderPath );
53
* Check if a string is an automake variable
54
* \return true if it is an automake variable, false otherwise
56
bool isVariable( const QString& item ) const;
59
* Find the value for the variable specified by \p variable
60
* \param variable The name of the variable to look for
61
* \param ast the AST to use to look for the variable in
62
* \return the value to substitute for the variable
64
QString resolveVariable( const QString& variable,
65
AutoTools::ProjectAST* ast );
75
//kate: space-indent on; indent-width 4;