forked from raaz-crypto/raaz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (30 loc) · 771 Bytes
/
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
PACKAGES=primitives ssh hash-sha
hash-sha: primitives
BRANCHES=${PACKAGES}
X_BRANCHES=$(addprefix x-,${BRANCHES})
TEST_PATH=dist/build/tests/tests
.PHONY: ${PACKAGES} install merge release tests
install: ${PACKAGES}
git checkout master
${PACKAGES}:
git checkout x-$@
cd raaz-$@;\
cabal install --enable-documentation\
--enable-tests\
--force-reinstall
tests:
$(foreach pkg, ${PACKAGES},\
git checkout x-${pkg};\
cd raaz-${pkg};\
cabal test;\
cd ..;\
)
git checkout master
merge:
git checkout master
if git branch | grep -q 'x-merge'; then git branch -D x-merge ; fi
git checkout -B x-merge
git merge --no-ff ${X_BRANCHES} -m `date -u +'snapshot-%F-%T-%Z'`
release:
git checkout master
git merge --no-ff ${BRANCES}