X-Git-Url: https://the.earth.li/gitweb/?p=mqtt-arp.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=75af65d85a12a6155b541436e5c14b4fd7dcc668;hp=2aefb524058675ef02427e00b8a8838c34c06e2c;hb=670acb35f09c59e599f4fc7371b33613e567f830;hpb=21137fd11bb52ff1a24987c4f51946b85f6eb0af diff --git a/Makefile b/Makefile index 2aefb52..75af65d 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,12 @@ 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)