opensnitch/daemon/Makefile

29 lines
697 B
Makefile
Raw Normal View History

#SRC contains all *.go *.c *.h files in daemon/ and its subfolders
SRC := $(shell find . -type f -name '*.go' -o -name '*.h' -o -name '*.c')
PREFIX?=/usr/local
2018-04-10 18:38:04 +02:00
all: opensnitchd
2018-04-02 17:54:56 +02:00
install:
@mkdir -p $(DESTDIR)/etc/opensnitchd/rules
@install -Dm755 opensnitchd \
-t $(DESTDIR)$(PREFIX)/bin/
@install -Dm644 opensnitchd.service \
-t $(DESTDIR)/etc/systemd/system/
@install -Dm644 default-config.json \
-t $(DESTDIR)/etc/opensnitchd/
@install -Dm644 system-fw.json \
-t $(DESTDIR)/etc/opensnitchd/
@install -Dm644 network_aliases.json \
-t $(DESTDIR)/etc/opensnitchd/
@systemctl daemon-reload
opensnitchd: $(SRC)
@go get
2018-04-10 18:38:04 +02:00
@go build -o opensnitchd .
2018-04-02 17:54:56 +02:00
clean:
2018-04-10 18:38:04 +02:00
@rm -rf opensnitchd