summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..2ae2e86
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+TARGET_EXEC := ceres
+BUILD_DIR := ./build
+MODULE_NAME := xengineering.eu/ceres
+
+all: $(BUILD_DIR)/$(TARGET_EXEC)
+
+$(BUILD_DIR)/$(TARGET_EXEC):
+ go build -o $@ $(MODULE_NAME)
+
+.PHONY: debug
+debug:
+ go run $(MODULE_NAME)
+
+.PHONY: clean
+clean:
+ rm -rf $(BUILD_DIR)