From 076d41e0ab1a32831b06f69d2628e9bf6fea051b Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Mon, 21 Mar 2016 12:51:45 -0400 Subject: [PATCH] Reorganize --- Makefile | 10 ++++++++++ src/Makefile | 8 ++++++++ buffer.go => src/buffer.go | 0 cursor.go => src/cursor.go | 0 eventhandler.go => src/eventhandler.go | 0 highlighter.go => src/highlighter.go | 0 micro.go => src/micro.go | 0 rope.go => src/rope.go | 0 stack.go => src/stack.go | 0 statusline.go => src/statusline.go | 0 util.go => src/util.go | 0 view.go => src/view.go | 0 12 files changed, 18 insertions(+) create mode 100644 Makefile create mode 100644 src/Makefile rename buffer.go => src/buffer.go (100%) rename cursor.go => src/cursor.go (100%) rename eventhandler.go => src/eventhandler.go (100%) rename highlighter.go => src/highlighter.go (100%) rename micro.go => src/micro.go (100%) rename rope.go => src/rope.go (100%) rename stack.go => src/stack.go (100%) rename statusline.go => src/statusline.go (100%) rename util.go => src/util.go (100%) rename view.go => src/view.go (100%) diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..bf43e5d3 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +build: syn-files + make build -C src + mv src/micro . + +install: syn-files + make install -C src + +syn-files: + mkdir -p ~/.micro/syntax + cp syntax_files/* ~/.micro/syntax diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 00000000..9a0ae288 --- /dev/null +++ b/src/Makefile @@ -0,0 +1,8 @@ +build: + go get ./... + go build -o micro + +install: + go get ./... + go build -o micro + mv micro $(GOBIN) diff --git a/buffer.go b/src/buffer.go similarity index 100% rename from buffer.go rename to src/buffer.go diff --git a/cursor.go b/src/cursor.go similarity index 100% rename from cursor.go rename to src/cursor.go diff --git a/eventhandler.go b/src/eventhandler.go similarity index 100% rename from eventhandler.go rename to src/eventhandler.go diff --git a/highlighter.go b/src/highlighter.go similarity index 100% rename from highlighter.go rename to src/highlighter.go diff --git a/micro.go b/src/micro.go similarity index 100% rename from micro.go rename to src/micro.go diff --git a/rope.go b/src/rope.go similarity index 100% rename from rope.go rename to src/rope.go diff --git a/stack.go b/src/stack.go similarity index 100% rename from stack.go rename to src/stack.go diff --git a/statusline.go b/src/statusline.go similarity index 100% rename from statusline.go rename to src/statusline.go diff --git a/util.go b/src/util.go similarity index 100% rename from util.go rename to src/util.go diff --git a/view.go b/src/view.go similarity index 100% rename from view.go rename to src/view.go