#include "../openldev-utils.h"
#include <glib.h>
#include <iostream>
#include <vector>
#include <string>
#include <fstream>
Data Structures | |
struct | MakefileBuffer |
Simple list of all of the elements in a Makefile.am. More... | |
struct | MakefileVariable |
Variable element in a Makefile.am (Used by Makefile). More... | |
struct | MakefileScript |
Script element in a Makefile.am (Used by Makefile). More... | |
struct | MakefilePrefix |
Prefix element in a Makefile.am (Used by Makefile). More... | |
struct | MakefileTarget |
Target element in a Makefile.am (Used by Makefile). More... | |
struct | Makefile |
Fully parsed structure of all of the elements in a Makefile.am. More... | |
Enumerations | |
enum | TargetType |
Specify the target type as PROGRAMS, LIBRARIES or LTLIBRARIES. | |
Functions | |
MakefileBuffer * | openldev_makefile_buffer_read (string file) |
Makefile * | openldev_makefile_new (string file) |
void | openldev_makefile_write (Makefile *mf) |
vector< string > | openldev_makefile_get_subdirs (Makefile *mf) |
vector< string > | openldev_makefile_get_sources (Makefile *mf) |
|
This will create a new MakefileBuffer object out of the Makefile.am file. This is useful if you want to parse manually through the list of objects.
|
|
This will retrieve all of the sources from each of the targets in the project. You can also achieve this result by parsing manually through all of the target objects.
|
|
You can use this function to retrieve the list of SUBDIRS in a Makfile.am, although it is somewhat arbitrary since that object is now public.
|
|
This will create a new Makefile object out of the specified Makefile.am. This object has already sorted out the different types of elements, so it is a lot easier to work with than MakefileBuffer objects.
|
|
Write the current content of a Makefile object to the file it was loaded from. Use this so changes are not lost.
|