Skip to content

Commit

Permalink
First try at simplifying development
Browse files Browse the repository at this point in the history
- add documentation for developers
- make git ignore generated files
- fix a warning which would fail during make, case evaluation falling through
  • Loading branch information
Eric L committed Feb 26, 2022
1 parent fb51489 commit e459204
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Vim temporary and backup files
.*.swp
*~

# autoreconf output files
Makefile.in
aclocal.m4
autom4te.cache/
build-aux/
configure
src/config.h.in

# build directory
build/
28 changes: 28 additions & 0 deletions DEVELOP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Instructions to build and develop eventlircd

## Prerequisites

```
sudo apt install gcc libudev-dev
```

**NOTE:** there are surely more dependencies which were already installed on my workstation, so I wouldn't know.

## Compile

```
autoreconf --install
mkdir build
cd build
../configure --sysconfdir=/etc
make
```

**TIP:** we use the build directory to avoid mixing generated and source files.

## Install

```
cd build
sudo make install [DESTDIR=...]
```
2 changes: 2 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ int main(int argc,char **argv)
{
syslog(LOG_WARNING, "the highest verbosity level is -vvv\n");
}
foreground = true;
break;
case 'f':
foreground = true;
break;
Expand Down

0 comments on commit e459204

Please sign in to comment.