-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (34 loc) · 1.24 KB
/
Makefile
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
38
39
40
41
42
43
#******************************************************************************
SHELL=/bin/bash
.PHONY: clean test gg
archdir=bin/$(shell uname -m)
destbin=/usr/bin
#******************************************************************************
all: $(archdir)/routekeys
clean:
rm $(archdir)/routekeys
install: $(destbin)/routekeys
$(destbin)/routekeys: $(archdir)/routekeys $(wildcard scripts/*.sh)
sudo ./install && touch install
gg: install
git add . && git commit -m ... ; :
git push
ggio:
printf "%.0s-" {1..30} && cat /etc/hostname
git pull && make gg
#compiling on all comps, for providing multi-arch binaries:
ggallcomps: gg
scripts/routekeysdest.sh listdestinations | \
while read line; do \
(< /dev/null ssh $$line 'cd github/routekeys; make ggio'); done
git pull
#******************************************************************************
$(archdir):
mkdir -p $(archdir)
$(archdir)/routekeys: $(archdir) routekeys.c
gcc routekeys.c -o $(archdir)/routekeys -lpthread
test: install
#kill in case that app cause keyboard hangs-up
(echo killing in 30s; sleep 30; sudo ./install justkill)&
routekeysloop.sh
#******************************************************************************