mirror of
https://github.com/drygdryg/wpspin-nim.git
synced 2025-05-24 17:22:58 +03:00
Prepare for publication
This commit is contained in:
25
Makefile
Normal file
25
Makefile
Normal file
@@ -0,0 +1,25 @@
|
||||
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 $(DESTDIR)$(BINDIR)
|
||||
install -m 755 $< $(DESTDIR)$(BINDIR)
|
||||
|
||||
uninstall:
|
||||
rm $(BINDIR)/$(TARGET)
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET)
|
Reference in New Issue
Block a user