stormfetch/Makefile

22 lines
468 B
Makefile

ifeq ($(PREFIX),)
PREFIX := /usr/local
endif
ifeq ($(BINDIR),)
BINDIR := $(PREFIX)/bin
endif
ifeq ($(SYSCONFDIR),)
SYSCONFDIR := $(PREFIX)/etc
endif
build:
mkdir -p build
go build -o build/stormfetch stormfetch
install: build/stormfetch config/
mkdir -p $(DESTDIR)$(BINDIR)
mkdir -p $(DESTDIR)$(SYSCONFDIR)"/stormfetch/"
cp build/stormfetch $(DESTDIR)$(BINDIR)"/stormfetch"
cp -r config/. $(DESTDIR)$(SYSCONFDIR)"/stormfetch/"
clean:
rm -r build/