Permalink
Browse files

use a stamp file to avoid running deploy.sh so many times

  • Loading branch information...
1 parent 4151f59 commit f54fc614e055881617e60b981135ededcd0e02ef @jaredjennings committed Jun 12, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 Makefile
View
@@ -1,4 +1,4 @@
-all: deploy-enyo-frontend
+all: deploy-enyo-frontend-stamp
install: install-backend install-enyo-frontend
@@ -13,11 +13,12 @@ install-backend: backend/pythonhome
# this target does not actually deploy anything: it creates a dir ready to be
# deployed
-deploy-enyo-frontend:
+deploy-enyo-frontend-stamp: source/* enyo/*
cd tools; ./deploy.sh
cd deploy; ln -sf `ls -1rt | tail -n 1` latest
+ touch $@
-install-enyo-frontend: deploy-enyo-frontend
+install-enyo-frontend: deploy-enyo-frontend-stamp
rm -rf /srv/www/root/sparsam/*
cp -R deploy/latest/* /srv/www/root/sparsam/

0 comments on commit f54fc61

Please sign in to comment.