# UDM Build and Packaging Guide

This repository contains the Unihedron Device Manager (udm) binary and
supporting data files. The provided `Makefile` handles installation and
optional Debian package creation.

## Prerequisites

Install the required tools:

Debian/Ubuntu:

```
sudo apt-get install make checkinstall
```

If you only want to install files without creating a `.deb`, `checkinstall`
is optional.

## Install (no .deb)

Install directly to the system:

```
sudo make install
```

Stage files into a folder instead of the system:

```
make install DESTDIR="/tmp/udm-stage" prefix="/usr"
```

The staged layout will be under:

```
/tmp/udm-stage/usr/local/bin
/tmp/udm-stage/usr/share/udm
```

## Build a Debian Package (.deb)

Create a `.deb` using `checkinstall`:

```
sudo make deb
```

During the process, `checkinstall` prompts you for a package description.
Use a short, plain sentence and finish with an empty line. Example:

```
Unihedron Device Manager (udm) application and data files.

```

Press Enter on the blank line to continue.

