X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=Makefile;h=1fa6d713a602db323db44efecd3719576455367b;hb=53595c2a9d1df6993dd69217c4bd1a6a9d51bff7;hp=55603eef8449a88260a2d9b7281399117ca44424;hpb=1c0419d6b4c94643bfa7bed9a6b435bbdbbae02f;p=platal.git diff --git a/Makefile b/Makefile index 55603ee..1fa6d71 100644 --- a/Makefile +++ b/Makefile @@ -40,6 +40,10 @@ q: %: %.in Makefile ChangeLog sed -e 's,@VERSION@,$(VERSION),g' $< > $@ +up: update +update: + @git fetch && git rebase `git symbolic-ref HEAD | sed -e 's~refs/heads/~origin/~'` && git submodule update + ################################################################################ # targets @@ -55,9 +59,9 @@ core: ## conf ## -conf: spool/templates_c spool/mails_c classes/platalglobals.php configs/platal.cron htdocs/.htaccess spool/conf spool/tmp +conf: spool/templates_c spool/mails_c classes/platalglobals.php configs/platal.cron htdocs/.htaccess spool/conf spool/tmp spool/banana -spool/templates_c spool/mails_c spool/uploads spool/conf spool/tmp spool/run: +spool/templates_c spool/mails_c spool/uploads spool/conf spool/tmp spool/run spool/banana: mkdir -p $@ chmod o+w $@ @@ -170,17 +174,20 @@ $(MEDAL_THUMBNAILS): $(subst /medals/thumb/,/medals/,$(@F)) ## jquery ## JQUERY_VERSION=1.4.2 -JQUERY_PLUGINS=color +JQUERY_PLUGINS=color form JQUERY_PLUGINS_PATHES=$(addprefix htdocs/javascript/jquery.,$(addsuffix .js,$(JQUERY_PLUGINS))) JQUERY_UI_VERSION=1.6 JQUERY_UI=core tabs JQUERY_UI_PATHES=$(addprefix htdocs/javascript/jquery.ui.,$(addsuffix .js,$(JQUERY_UI))) +JSTREE_VERSION=1.0rc2 +JSTREE_PATH=htdocs/javascript/jquery.jstree.js + # TODO: jquery.autocomplete.js should rather be downloaded from an official source. The issue # is that the version we use is not available anymore on the Internet, and the latest version # we could use is not backward compatible with our current code. -jquery: htdocs/javascript/jquery.js $(JQUERY_PLUGINS_PATHES) $(JQUERY_UI_PATHES) +jquery: htdocs/javascript/jquery.js $(JQUERY_PLUGINS_PATHES) $(JQUERY_UI_PATHES) $(JSTREE_PATH) htdocs/javascript/jquery-$(JQUERY_VERSION).min.js: DOWNLOAD_SRC = http://jquery.com/src/$(@F) htdocs/javascript/jquery-$(JQUERY_VERSION).min.js: @@ -190,7 +197,7 @@ htdocs/javascript/jquery-$(JQUERY_VERSION).min.js: htdocs/javascript/jquery.js: htdocs/javascript/jquery-$(JQUERY_VERSION).min.js ln -snf $(