-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (29 loc) · 903 Bytes
/
Makefile
File metadata and controls
37 lines (29 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This Makefile works to install git-token.
# However, it exist mainly as a source of inspiration for creating your own
# repository, possibly forked by this gist.
#
# See https://github.com/kaarmu/git-token
install:
# Install any potential tokens
mkdir -p ${HOME}/.local/share/git-token
ifneq (,$(wildcard tokens/*))
cp -r tokens/* ${HOME}/.local/share/git-token
endif
# Install the git-token script
mkdir -p ${HOME}/.local/bin
install -m=775 ./git-token ${HOME}/.local/bin/git-token
uninstall:
# Remove tokens
rm -r ${HOME}/.local/share/git-token
# Remove script
rm ${HOME}/.local/bin/git-token
reinstall: uninstall install
update: install
load:
# Get tokens from system and put in this repository
cp -rf ${HOME}/.local/share/git-token/* tokens
## Documentation ##
man/git-token.1.gz: man/git-token.1.scd
scdoc < $< > man/git-token.1
gzip man/git-token.1
man: man/git-token.1.gz