~smlavine/scripts

ref: 5af0022d2df522079823605c7340e26ab9847202 scripts/Makefile -rw-r--r-- 339 bytes
5af0022dSebastian LaVine dotfiles -> scripts 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.POSIX:

all: install

install:
	find src -mindepth 1 -type f | \
               xargs -I'{}' cp -v '{}' "$(HOME)/.local/bin"

uninstall:
	find src -mindepth 1 -type f | \
               awk -v home="$(HOME)" \
               '{ sub("^src",""); print "rm -v " home "/.local/bin" $$0 }' | \
               sh

.PHONY: all install uninstall