From 0d4846cd8d46c5d7710648a8a61e80c942a5a5ed Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Fri, 27 Mar 2015 13:28:33 +0100 Subject: Docker packaging. --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Makefile') 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 -- cgit v1.1