wpspin-nim/Makefile

24 lines
343 B
Makefile
Raw Normal View History

2020-10-20 03:54:30 +03:00
PREFIX ?= /usr
BINDIR = $(DESTDIR)$(PREFIX)/bin
SRCDIR = src
TARGET = wpspin
SOURCE = $(SRCDIR)/wpspin.nim
.PHONY: all install uninstall
all: $(TARGET)
$(TARGET): $(SOURCE)
2021-02-04 08:15:38 +03:00
nimble build -d:release
2020-10-20 03:54:30 +03:00
strip $@
install: $(TARGET)
2020-10-20 05:26:13 +03:00
install -d $(BINDIR)
install -m 755 $< $(BINDIR)
2020-10-20 03:54:30 +03:00
uninstall:
rm $(BINDIR)/$(TARGET)
clean:
rm -f $(TARGET)