Added Makefile
This commit is contained in:
parent
9d78dc0ca6
commit
72fcee014f
16
Makefile
Normal file
16
Makefile
Normal 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/
|
Loading…
x
Reference in New Issue
Block a user