aboutsummaryrefslogtreecommitdiff
path: root/alarm-tools
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2019-05-08 22:01:55 +1200
committerDavid Phillips <david@sighup.nz>2019-05-08 22:43:07 +1200
commitccb9881319276e94fdede79c46c4f0d4c981dc41 (patch)
treef59898dd1881328b9fbf06160a194627462e56a7 /alarm-tools
parentb01e76ae9cc32ee92e4203fe6d1c0e2f9edfe766 (diff)
downloadalarmd-master.tar.xz
Refactor build process, use setup.pyHEADmaster
Diffstat (limited to 'alarm-tools')
-rw-r--r--alarm-tools/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/alarm-tools/Makefile b/alarm-tools/Makefile
index f181e5f..c5097f4 100644
--- a/alarm-tools/Makefile
+++ b/alarm-tools/Makefile
@@ -1,3 +1,5 @@
+include ../config.mk
+
LDFLAGS += -L../lib -lalarm
CFLAGS += -I../inc
@@ -6,5 +8,8 @@ all: alarms-show
alarms-show: alarms-show.o
$(CC) -o $@ $^ $(LDFLAGS)
+install:
+ install -Dm755 alarms-show "$(DESTDIR)/$(PREFIX)/bin/alarms-show"
+
clean:
rm alarms-show