2021-02-13 14:03:12 +03:00
|
|
|
#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')
|
|
|
|
|
2018-04-10 18:38:04 +02:00
|
|
|
all: opensnitchd
|
2018-04-02 17:54:56 +02:00
|
|
|
|
2018-04-10 19:16:29 +02:00
|
|
|
install:
|
|
|
|
@mkdir -p /etc/opensnitchd/rules
|
|
|
|
@cp opensnitchd /usr/local/bin/
|
|
|
|
@cp opensnitchd.service /etc/systemd/system/
|
2020-03-08 20:25:05 +01:00
|
|
|
@cp default-config.json /etc/opensnitchd/
|
2020-12-11 23:42:47 +01:00
|
|
|
@cp system-fw.json /etc/opensnitchd/
|
2018-04-10 19:16:29 +02:00
|
|
|
@systemctl daemon-reload
|
|
|
|
|
2021-02-13 14:03:12 +03:00
|
|
|
opensnitchd: $(SRC)
|
2021-09-15 04:28:56 +00:00
|
|
|
@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
|
2018-04-10 19:16:29 +02:00
|
|
|
|
|
|
|
|