Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>
all: add a makefile to fetch raw data and compile
.gitignore | 1 + Makefile | 23 +++++++++++++++++++++++
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..4f9c7c8b5ab9e414386d04e2746532e98e1aa2fa --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +antispam diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..8b0a1abdf0602b562800b0e8a369baa2a691fb6e --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +.POSIX: +.SUFFIXES: + +GO = go +RM = rm +GOFLAGS = +PREFIX = /usr/local +BINDIR = $(PREFIX)/bin +MANDIR = $(PREFIX)/share/man + +all: antispam-api + +antispam-api: antispam-data + $(GO) build $(goflags) -o antispam main.go + +antispam-data: + git submodule update --init + (cd data && make json) + +clean: + $(RM) -rf antispam + +.PHONY: antispam antispam-data clean