Build system

Configure

In configure.ac a variable should be defined that contains the location where the .panel-applet files are installed. You can fetch this directory during configure with the following code:

1

Makefiles

A typical Makefile for that is used to build and install an applet contains the following declarations:
  • A rule to install the .panel-applet file.

  • A rule to install the D-Bus service file if the applet is an out process applet.

  • The .panel-applet file and the D-Bus .service file are added to EXTRA_DIST and CLEANFILES.

Installing the Panel Applet File

1

Installing the D-Bus service file

To install the service file the following rule can be placed in the applets Makefile:

1

Distribution and Cleanup

Add panel-applet .in.in and service file to EXTRA_DIST and $(applet_DATA) $(applet_DATA).in to CLEANFILES

1