~smlavine/scripts

ref: 5baff32f611b2013046beab575d024dee6a3f0a2 scripts/Makefile -rw-r--r-- 339 bytes
5baff32fSebastian LaVine Remove 'extract' 4 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