X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=6f557bae544f0079e28bfc58ee3dd64fe69d5015;hb=5df37d96aa758faa548091932a5d00a76aa16551;hp=473e3d76741181d6625ba855d02361dbf5f4834b;hpb=b45df9e952ec69d293fe0e4963e040d2a21c07b3;p=myslice.git diff --git a/Makefile b/Makefile index 473e3d76..6f557bae 100644 --- a/Makefile +++ b/Makefile @@ -71,14 +71,17 @@ debian.clean: plugins-templates: force @find plugins -type f -name '*.html' local-templates: force + @$(foreach tmpl,$(shell find . -name templates | grep -v '^\./templates$$'),find $(tmpl) -maxdepth 2 -type f -name *.html;) +local-templates2: force @$(foreach tmpl,$(shell find . -name templates | grep -v '^\./templates$$'),ls -1 $(tmpl)/*;) + list-templates: plugins-templates local-templates #################### manage templates for the plugin area templates: force - mkdir -p templates - ln -sf $(foreach x,$(shell $(MAKE-SILENT) list-templates),../$(x)) ./templates + @mkdir -p templates + ln -sf $(foreach x,$(shell $(MAKE-SILENT) list-templates),"../$(x)") ./templates clean-templates templates-clean: force rm -rf ./templates @@ -91,7 +94,10 @@ redo-templates: clean-templates templates #################### compute emacs tags # list files under git but exclude third-party stuff like bootstrap and jquery myfiles: force - @git ls-files | egrep -v 'insert(_|-)above|third-party/|play/' + @git ls-files | egrep -v 'insert(_|-)above|third-party/|to-be-integrated/' + +pyfiles: force + @git ls-files | grep '\.py$$' # in general it's right to rely on the contents as reported by git tags: force @@ -107,8 +113,9 @@ ftags: force #################### sync : push current code on a box running myslice # this for now targets deployments based on the debian packaging -SSHURL:=root@$(MYSLICEBOX):/ -SSHCOMMAND:=ssh root@$(MYSLICEBOX) +SSHUSER ?= root +SSHURL := $(SSHUSER)@$(MYSLICEBOX): +SSHCOMMAND := ssh $(SSHUSER)@$(MYSLICEBOX) ### rsync options # the config file should probably not be overridden ?? @@ -148,7 +155,7 @@ ifeq (,$(MYSLICEBOX)) @echo " $(MAKE) MYSLICEBOX=debian04.pl.sophia.inria.fr "$@"" @exit 1 else - +$(RSYNC) ./apache/myslice.conf $(SSHURL)/$(INSTALLED_APACHE)/ + +$(RSYNC) ./apache/unfold.conf $(SSHURL)/$(INSTALLED_APACHE)/ +$(RSYNC) ./apache/unfold-init-ssl.sh $(SSHURL)/$(bindir)/ endif @@ -160,3 +167,14 @@ ifeq (,$(MYSLICEBOX)) else +$(SSHCOMMAND) apachectl restart endif + +#SSHUSER=tparment +#MYSLICEBOX=srv-diana.inria.fr +sync-devel: +ifeq (,$(MYSLICEBOX)) + @echo "you need to set MYSLICEBOX, like in e.g." + @echo " $(MAKE) MYSLICEBOX=srv-diana.inria.fr "$@"" + @exit 1 +else + +$(RSYNC) --relative $$(git ls-files) $(SSHURL)myslice/ +endif