]> the.earth.li Git - mqtt-arp.git/blobdiff - Makefile
Add missing debian/source/format indicating we're a native package
[mqtt-arp.git] / Makefile
index 2aefb524058675ef02427e00b8a8838c34c06e2c..9e688b607a03ccf88b96d358d79a7d691ddd7f7c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,18 @@
-CC = gcc
-CFLAGS = -Wall
-LDFLAGS =
+CC ?= gcc
+CFLAGS ?= -Wall
+LDFLAGS ?=
 
 all: mqtt-arp
 
 mqtt-arp: mqtt-arp.o
        $(CC) -o $@ $< $(LDFLAGS) -lmosquitto
 
+install: mqtt-arp
+       install -d $(DESTDIR)/etc
+       install -d $(DESTDIR)/usr/sbin
+       install mqtt-arp $(DESTDIR)/usr/sbin/
+       install -m 600 mqtt-arp.conf $(DESTDIR)/etc/
+
 %.o: %.c
        $(CC) -c -o $@ $< $(CFLAGS)