mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
19 lines
326 B
Makefile
19 lines
326 B
Makefile
PREFIX ?= $(HOME)/.local
|
|
BINDIR = $(PREFIX)/bin
|
|
COMPLETIONDIR = $(PREFIX)/completions
|
|
LIBDIR = $(PREFIX)/lib
|
|
|
|
build:
|
|
swiftc ./scripts/build.swift
|
|
./build
|
|
rm ./build
|
|
|
|
install: build
|
|
install -d "$(BINDIR)" "$(LIBDIR)"
|
|
install ./.build/release/dots "$(BINDIR)"
|
|
|
|
uninstall:
|
|
rm "$(BINDIR)/dots"
|
|
rm "$(COMPLETIONDIR)/_dots"
|
|
|