mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
21 lines
480 B
Makefile
21 lines
480 B
Makefile
#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')
|
|
|
|
all: opensnitchd
|
|
|
|
install:
|
|
@mkdir -p /etc/opensnitchd/rules
|
|
@cp opensnitchd /usr/local/bin/
|
|
@cp opensnitchd.service /etc/systemd/system/
|
|
@cp default-config.json /etc/opensnitchd/
|
|
@cp system-fw.json /etc/opensnitchd/
|
|
@systemctl daemon-reload
|
|
|
|
opensnitchd: $(SRC)
|
|
@go get
|
|
@go build -o opensnitchd .
|
|
|
|
clean:
|
|
@rm -rf opensnitchd
|
|
|
|
|