From 71950479fbd6088f249e5fda3b180f294d1d745d Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 6 Feb 2018 00:35:39 +0100 Subject: Moves crawler to designated directory. --- crawler/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 crawler/Makefile (limited to 'crawler/Makefile') diff --git a/crawler/Makefile b/crawler/Makefile new file mode 100644 index 0000000..7126e13 --- /dev/null +++ b/crawler/Makefile @@ -0,0 +1,20 @@ +BINARY := $(notdir $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST)))))) +MAINFILE := +SOURCEDIR := . +SOURCES := $(shell find $(SOURCEDIR) -name '*.go') + +all: build run + +build: $(BINARY) + +$(BINARY): $(SOURCES) + go build -o $(BINARY) + +run: build + ./$(BINARY) + +clean: + $(RM) $(RMFLAGS) $(BINARY) + +edit: + $(EDITOR) $(MAINFILE) *.go -- cgit v1.2.3