summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMax2019-04-17 09:44:56 +0200
committerMax2019-04-17 09:44:56 +0200
commit4dc18e3691127e058833fd9c7a5bbee333c3a66c (patch)
treecfc6829bea0bf05854beb5a6a4b78eb1899c0b59 /Makefile
downloadghrss-4dc18e3691127e058833fd9c7a5bbee333c3a66c.tar.gz
Initial commit.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..7126e13
--- /dev/null
+++ b/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