# Repo to develop JAZ2

## Building the Project

### 1. Generate Build System Files
```bash
./install-gen.sh
```
- Generates `configure` script and Makefile templates
- Required for first-time builds or after makefile.am or configure.ac changes

### 2. Configure Build Options
```bash
./configure
```
- **--enable-server**: activates server components
- **--enable-agent**: activates agent components
- **--enable-agentwindows**: activates windows agent components
- **--enable-manager**: activates web manager components
- **--enable-utils**: activates external commands' components
- **--with-postgres**: activates postgres components
- **--with-mysql**: activates mysql components
- **--with-maria**: activates maria components

`note`: you can not use **--with-mysql** and **--with-maria** together

### 3. Build Binaries
```bash
make
```
- Output files will be created in the `bin/` directory
---

## 4. Installation
```bash
make install
```
- Installs to `/usr/local/sbin/` and `/usr/local/bin/jobarranger`
---

## 5. Uninstallation
```bash
sudo make uninstall
```
---


