mirror of
https://github.com/drygdryg/wpspin-nim.git
synced 2024-11-25 19:00:53 +03:00
26 lines
431 B
Makefile
26 lines
431 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 install -y argparse
|
|
nim compile --gc:none --checks:off --out:$@ $(SOURCE)
|
|
strip $@
|
|
nimble uninstall -y argparse
|
|
|
|
install: $(TARGET)
|
|
install -d $(BINDIR)
|
|
install -m 755 $< $(BINDIR)
|
|
|
|
uninstall:
|
|
rm $(BINDIR)/$(TARGET)
|
|
|
|
clean:
|
|
rm -f $(TARGET)
|