opensnitch/daemon/Makefile

22 lines
480 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')
2018-04-10 18:38:04 +02:00
all: opensnitchd
2018-04-02 17:54:56 +02:00
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
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