From 43e6693322d7253b9212f13a0d77df3ae2fcedda Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Wed, 12 Mar 2014 10:55:01 +0100 Subject: newer makefile --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9b681b2..2aa151d 100644 --- a/Makefile +++ b/Makefile @@ -4,9 +4,11 @@ cosmos: upgrade: fab upgrade +DB=global/overlay/etc/puppet/cosmos-db.yaml + db: - @python ./fabfile/db.py > global/overlay/etc/puppet/cosmos-db.yaml - @git add global/overlay/etc/puppet/cosmos-db.yaml && git commit -m "update db" global/overlay/etc/puppet/cosmos-db.yaml + @python ./fabfile/db.py > $(DB) + @git diff --exit-code $(DB) || ( git add $(DB) && git commit -m "update db" $(DB) ) tag: db ./bump-tag -- cgit v1.1