wpspin-nim/Makefile
Victor Golovanenko f1a40fc40c
Build with Nimble
2021-02-04 08:15:38 +03:00

24 lines
343 B
Makefile

PREFIX ?= /usr
BINDIR = $(DESTDIR)$(PREFIX)/bin
SRCDIR = src
TARGET = wpspin
SOURCE = $(SRCDIR)/wpspin.nim
.PHONY: all install uninstall
all: $(TARGET)
$(TARGET): $(SOURCE)
nimble build -d:release
strip $@
install: $(TARGET)
install -d $(BINDIR)
install -m 755 $< $(BINDIR)
uninstall:
rm $(BINDIR)/$(TARGET)
clean:
rm -f $(TARGET)