Added Makefile

This commit is contained in:
CapCreeperGR 2024-05-06 13:26:09 +03:00
parent 9d78dc0ca6
commit 72fcee014f

16
Makefile Normal file
View File

@ -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/