Groups and targets
- 4.4.1. Adding Groups
- 4.4.2. Removing Groups
- 4.4.3. Adding Targets
- 4.4.4. Removing Targets
4.4.1. Adding Groups
To add a new group (which is a directory in automake-based projects):
- Select and a dialog to add a new group will pop up.
- Select the group under which to add the new group.
- Enter the name of the new group and click .
With automake projects, a new directory with the given name will be created under the parent group's directory.
You can also add a new group from the Project window directly. Right-click the group under which to add the new group, then choose from the context menu.
4.4.2. Removing Groups
To remove a group:
- Right-click the group in the Project Manager view.
- Select from the context menu.
The target and sources associated with the group will also be removed from the project. (They are not deleted from the file system, though. You can add them to the project again later if you like.)
4.4.3. Adding Targets
To add a new target:
- Select and a dialog to add a new target will popup.
- Select the group under which to add the target.
- Select the target type.
- Enter a name for the new target and click .
You can also add a new target from the Project window directly. Right-click the group under which to add the target, then select from the context menu.
Target names usually require some standard prefix and suffix, depending on the type of target. Anjuta will warn you if a name is not valid and may provide an example of a valid name.
There are several target types for automake projects. They are:
-
The Program target type is for executable binaries. Select this type if you want to add an executable to the project. By default, all program targets will be installed in the standard executable directory, e.g. /usr/bin or /usr/local/bin. You can override this by specifying a different installation directory in the properties of the group containing the target.
-
The Shared Library target type is for shared or dynamic libraries. Select this type if you are adding a shared library to the project. By default, all shared libraries are installed in the standard libraries directory, e.g. /usr/lib or /usr/local/lib. You can override this by specifying a different installation directory in the properties of the group containing the target.
-
The Static Library target type is for static libraries. Select this type if you are adding a static library to the project. By default, all static libraries are installed in the standard libraries directory, e.g. /usr/lib or /usr/local/lib. You can override this by specifying a different installation directory in the properties of the group containing the target.
-
The Java Module target type is for Java modules. Select this type if you are grouping Java sources into a module. You need to provide an installation directory for this target where the .class files will be installed. It can be set in the properties of the group containing the target.
There can really be only one Java module in a group. This is a restriction made by automake. Please read the automake info page for more details.
-
The Python Module target type is for Python modules. Select this type if you are grouping Python sources into a module. You need to provide an installation directory for this target where the sources will be installed. It can be set in the properties of the group containing the target.
-
The Scripts target type is for grouping scripts. They will be installed in the standard executable directory.
-
The Miscellaneous Data target type is for grouping simple files in a project. You must specify an installation directory in the group properties.
-
The Header Files target type is for grouping C/C++ header files that need to be installed on a system (for example as part of a library API). (For header files that do not need to be installed, make them part of the Program target along with the sources.) Header files will be installed in the standard include directory unless an installation path is specified in the group properties.
-
The Man Documentation and Info Documentation target types are for grouping man and info documentation respectively. By default, documentation files will be installed in the standard installation directories.
