mirror of
https://github.com/jimeh/fastmail-rules.git
synced 2026-02-19 11:56:39 +00:00
feat(spammy-recruiters): add spammy-recruiters generator
This commit is contained in:
28
Makefile
Normal file
28
Makefile
Normal file
@@ -0,0 +1,28 @@
|
||||
#
|
||||
# Build
|
||||
#
|
||||
|
||||
BINDIR := bin
|
||||
CMDDIR := cmd
|
||||
|
||||
SOURCES := $(shell find * -name "*.go" -or -name "go.mod" -or -name "go.sum" \
|
||||
-or -name "Makefile")
|
||||
BINS := $(shell test -d "$(CMDDIR)" && cd "$(CMDDIR)" && \
|
||||
find * -maxdepth 0 -type d -exec echo $(BINDIR)/{} \;)
|
||||
|
||||
.PHONY: build
|
||||
build: $(BINS)
|
||||
|
||||
$(BINS): $(BINDIR)/%: $(SOURCES)
|
||||
mkdir -p "$(dir $@)"
|
||||
cd "$(CMDDIR)/$*" && go build -a -o "$(CURDIR)/$(BINDIR)/$*"
|
||||
|
||||
#
|
||||
# Rules
|
||||
#
|
||||
|
||||
rules: spammy-recruiters.json
|
||||
|
||||
.PHONY: spammy-recruiters.json
|
||||
spammy-recruiters.json: bin/spammy-recruiters
|
||||
bin/spammy-recruiters -o "$@"
|
||||
Reference in New Issue
Block a user