Makefile now creates build.tar.gz

This commit is contained in:
Jonathan Bernard 2013-10-25 16:00:43 +00:00
parent 839646b154
commit 26c5435b5c

View File

@ -5,6 +5,8 @@ CSS_FILES = $(SCSS:www/css/%.scss=build/www/css/%.css)
TEST_MODS = $(wildcard test/*.erl) TEST_MODS = $(wildcard test/*.erl)
TEST_BEAMS = $(TEST_MODS:test/%.erl=build/test/%.beam) TEST_BEAMS = $(TEST_MODS:test/%.erl=build/test/%.beam)
TS_ROOT=/usr/local/var/yaws/jdb-labs.com/timestamper TS_ROOT=/usr/local/var/yaws/jdb-labs.com/timestamper
BUILD_SERVER=dev01.jdb-labs.com
BUILD_SOURCE=/~jdbernard/projects/timestamper/web-app
CWD = `pwd` CWD = `pwd`
default: build default: build
@ -31,7 +33,7 @@ stop-test-server :
@yaws --stop --id test_inst @yaws --stop --id test_inst
clean: clean:
rm -rf build rm -rf build*
init: init:
-mkdir -p build/ebin -mkdir -p build/ebin
@ -57,6 +59,7 @@ build: compile
cp lib/* build/ebin cp lib/* build/ebin
cp src/ts_db_records.hrl build/include cp src/ts_db_records.hrl build/include
cp yaws.prod.conf build/yaws.conf cp yaws.prod.conf build/yaws.conf
tar cf build.tar.gz build
deploy: build deploy: build
@service yaws stop @service yaws stop