-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
70 lines (52 loc) · 1.61 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# URLs that we'll need
URL1 = https://github.com/Smithsonian/SMA-Software
URL2 = https://github.com/Smithsonian/smax-python
URL3 = https://github.com/Smithsonian/redisx
URL4 = https://github.com/Smithsonian/SuperNOVAS
URL5 = https://github.com/Smithsonian/supernovas-rpm-spec
URL6 = https://github.com/valkey-io/valkey
URL7 = https://github.com/Smithsonian/xchange
GIT_DIRS = SMA-Software smax-python SuperNOVAS xchange
# redisx smax
.PHONY: help install
install:
@echo "No notes yet"
@echo ""
@echo "Other useful targets:"
@echo " make pull update all git repos"
@echo " make status view git status in all repos"
@echo " make update recompile updated repos"
@echo " make help a full list of all documented help"
@echo "For a full list, type: 'make help'"
@echo ""
help:
## help: This Help
help : Makefile
@sed -n 's/^##//p' $<
## git: Get all git repos for this install
git: $(GIT_DIRS)
## pull: Update all git repos
pull:
@echo -n "slama: "; git pull
-@for dir in $(GIT_DIRS); do\
(echo -n "$$dir: " ;cd $$dir; git pull); done
@echo Last pull: `date` >> git.log
status:
@echo -n "slama: "; git status -uno
-@for dir in $(GIT_DIRS); do\
(echo -n "$$dir: " ;cd $$dir; git status -uno); done
branch:
@echo -n "slama: "; git branch --show-current
-@for dir in $(GIT_DIRS); do\
(echo -n "$$dir: " ;cd $$dir; git branch --show-current); done
# all git targets
SMA-Software:
git clone $(URL1)
smax-python:
git clone $(URL2)
redisx:
git clone $(URL3)
SuperNOVAS:
git clone $(URL4)
xchange:
git clone $(URL7)