mirror of
https://github.com/EnumeratedDev/typer.git
synced 2026-10-31 19:31:48 +00:00
Initial Commit
This commit is contained in:
commit
6b5e6e8996
12 files changed
+602
No files matched your search
@@ -0,0 +1,25 @@
|
||||
# Installation paths
|
||||
PREFIX ?= /usr/local
|
||||
BINDIR ?= $(PREFIX)/bin
|
||||
SYSCONFDIR := $(PREFIX)/etc
|
||||
|
||||
# Compilers and tools
|
||||
GO ?= $(shell which go)
|
||||
|
||||
build:
|
||||
mkdir -p build
|
||||
cd src/; $(GO) build -ldflags "-w" -o ../build/typer
|
||||
|
||||
install: build/typer
|
||||
# Create directories
|
||||
install -dm755 $(DESTDIR)$(BINDIR)
|
||||
# Install files
|
||||
install -Dm755 build/typer $(DESTDIR)$(BINDIR)/typer
|
||||
|
||||
uninstall:
|
||||
rm $(DESTDIR)$(BINDIR)/typer
|
||||
|
||||
clean:
|
||||
rm -r build/
|
||||
|
||||
.PHONY: build
|
||||
Reference in new issue
Block a user