X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=a29b5b3a44980d20fe6280c4346c9b2d8e521e68;hb=6ee5cf51bf467560e4566b2b7bfa8e22dfff0784;hp=eb8ec41d8be0dda06ed43a885b4f17a1f9f64e69;hpb=d841475f0082f094ae9f58960ab401a3f1a6dae5;p=unfold.git diff --git a/Makefile b/Makefile index eb8ec41d..a29b5b3a 100644 --- a/Makefile +++ b/Makefile @@ -5,14 +5,29 @@ all: force: #################### 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|static/bootstrap|/jquery/|datatables/' + # in general it's right to rely on the contents as reported by git tags: force - git ls-files | xargs etags + $(MAKE) myfiles | xargs etags # however sometimes we have stuff not yet added, so in this case ftags: force find . -type f | fgrep -v '/.git/' | xargs etags +list-html: force + @find . -type f -name '*.html' +list-js: force + @find . -type f -name '*.js' | grep -v '/all-static/' +list-css: force + @find . -type f -name '*.css' | grep -v '/all-static/' +list-img: force + @find . -type f -name '*.png' | grep -v '/all-static/' + +list-all list-resources: list-html list-js list-css list-img + #################### manage static contents (extract from all the modules into the single all-static location) static: force ./manage.py collectstatic --noinput @@ -27,8 +42,9 @@ SSHURL:=root@$(MYSLICEBOX):/ SSHCOMMAND:=ssh root@$(MYSLICEBOX) ### rsync options -# the config file should probably not be overridden -LOCAL_RSYNC_EXCLUDES := --exclude '*.pyc' --exclude settings.py --exclude devel +# the config file should probably not be overridden ?? +# --exclude settings.py +LOCAL_RSYNC_EXCLUDES := --exclude '*.pyc' --exclude devel --exclude DataTables-1.9.4 --exclude all-static --exclude '*.sqlite3' # usual excludes RSYNC_EXCLUDES := --exclude .git --exclude '*~' --exclude TAGS --exclude .DS_Store $(LOCAL_RSYNC_EXCLUDES) # make -n will propagate as rsync -n @@ -37,7 +53,8 @@ RSYNC_COND_DRY_RUN := $(if $(findstring n,$(MAKEFLAGS)),--dry-run,) RSYNC := rsync -a -v $(RSYNC_COND_DRY_RUN) $(RSYNC_EXCLUDES) # xxx until we come up with a packaging this is going to be a wild guess -INSTALLED=/usr/share/myslice +#INSTALLED=/usr/share/myslice +INSTALLED=/root/myslice sync: ifeq (,$(MYSLICEBOX)) @@ -55,5 +72,5 @@ ifeq (,$(MYSLICEBOX)) @echo " $(MAKE) MYSLICEBOX=debian04.pl.sophia.inria.fr "$@"" @exit 1 else - @echo "$@" target not yet implemented; exit; @$(SSHCOMMAND) /etc/init.d/apache2 restart + @echo "$@" target not yet implemented - for an apache based depl it would read ...; exit; @$(SSHCOMMAND) /etc/init.d/apache2 restart endif