From 72fcee014fe238d46163e2f5a7d5cad351f3e3e7 Mon Sep 17 00:00:00 2001 From: CapCreeperGR Date: Mon, 6 May 2024 13:26:09 +0300 Subject: [PATCH] Added Makefile --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1d1bb64 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +ifeq ($(PREFIX),) + PREFIX := /usr/local +endif + +build: + mkdir -p build + go build -o build/stormfetch stormfetch + +install: build/stormfetch config/ + mkdir -p $(DESTDIR)$(PREFIX)"/bin/" + mkdir -p $(DESTDIR)$(PREFIX)"/etc/stormfetch/" + cp build/stormfetch $(DESTDIR)$(PREFIX)"/bin/stormfetch" + cp -r config/. $(DESTDIR)$(PREFIX)"/etc/stormfetch/" + +clean: + rm -r build/ \ No newline at end of file