X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=e8b83bc70a93d31c184f85b02d6b20821eece149;hb=6631b100a93178c6269e731c6d53f34c6a153550;hp=9ac9b7f8d3b8f8dd062be4e3241325ed267b2f7c;hpb=aebe4680cb1bd57e604cf2f885c5eb80ee8d6a17;p=myslice.git diff --git a/Makefile b/Makefile index 9ac9b7f8..e8b83bc7 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ 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/|/bootstrap/|/jquery/' + @git ls-files | egrep -v 'insert(_|-)above|/bootstrap/|/jquery/|datatables/' # in general it's right to rely on the contents as reported by git tags: force @@ -17,6 +17,17 @@ tags: force 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 @@ -31,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 --exclude DataTables-1.9.4 +# 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