# Integrating with Buildsystems

## Introduction

Most projectis are using different buildsyste,. This page containst some practical instructions how to integrate AppStream metadata with them.

## Integrating with Autotools (appstream way)

You should add some things to `Makefile.am`.

Highly recommended to do all AppStream files localized.

Changes to `Makefile.am`

  Add this strings to `Makefile.am` in directory with AppStream metadata.

      appstreamdir = $(datadir)/appdata/
      dist_appstream_DATA = gedit.appdata.xml

  If you using Intltool, take a look how to translate AppStream with Autotools

## Integrating with Autotools (appstream-glib way)

You should add some things to `configure.ac` and `Makefile.am`. You need `libappstream-glib` installed.

Highly recommended to do all AppStream files localized.

Changes to `configure.ac`

      APPSTREAM_XML

Changes to `Makefile.am`

  Add this strings to `Makefile.am` in directory with AppStream metadata.

      dist_appstream_XML = gedit.appdata.xml
      @APPSTREAM_XML_RULES@

  If you using Intltool, take a look how to translate AppStream with Autotools