summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2015-03-27 13:28:33 +0100
committerLinus Nordberg <linus@nordberg.se>2015-03-31 17:17:09 +0200
commit0d4846cd8d46c5d7710648a8a61e80c942a5a5ed (patch)
tree03030a7febf121d9387c5f60f325551706e1f8cc /Makefile
parent07bbae40520a0fe5e893f73a29d785d2f3b59eed (diff)
Docker packaging.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index bda7f3a..cad1a7e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,17 @@
+# Makefile for catlfish
+
PREFIX=rel
build all:
./make.erl
+
clean:
-rm ebin/*.beam
+
release: all
rm -rf $(PREFIX)
mkdir $(PREFIX)
- ./makerelease.erl
- mkdir $(PREFIX)/catlfish
+ ./makerelease.erl $(PREFIX)
-include test/test.mk
@@ -27,12 +30,12 @@ tests-prepare:
cp -r test/config/privatekeys $(PREFIX)/tests
cp -r test/config/publickeys $(PREFIX)/tests
@for machine in $(MACHINES); do \
- (cd $(PREFIX); ../tools/compileconfig.py --config=../test/catlfish-test.cfg --localconfig ../test/catlfish-test-local-$$machine.cfg) ; \
+ tools/compileconfig.py --config=test/catlfish-test.cfg --localconfig test/catlfish-test-local-$$machine.cfg ; \
mkdir -p $(PREFIX)/tests/machine/machine-$$machine/db ; \
touch $(PREFIX)/tests/machine/machine-$$machine/db/index ; \
touch $(PREFIX)/tests/machine/machine-$$machine/db/newentries ; \
done
- (cd $(PREFIX); ../tools/compileconfig.py --config=../test/catlfish-test.cfg --localconfig ../test/catlfish-test-local-signing.cfg)
+ tools/compileconfig.py --config test/catlfish-test.cfg --localconfig test/catlfish-test-local-signing.cfg
@for node in $(NODES); do \
mkdir -p test/nodes/$$node/log ; \
done