opensnitch/daemon/Makefile
themighty1 be0c051205 makefile:
rename, remove unused targets
    trigger targets only when relevant files actually are changed
git:
    do not track files which are generated during make
github actions fix to not rely on a pre-built ui.pb.go
2021-02-13 18:48:49 +03:00

20 lines
471 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 build -o opensnitchd .
clean:
@rm -rf opensnitchd