3 @echo no default target
7 #################### compute emacs tags
8 # in general it's right to rely on the contents as reported by git
10 git ls-files | xargs etags
12 # however sometimes we have stuff not yet added, so in this case
14 find . -type f | fgrep -v '/.git/' | xargs etags
16 #################### manage static contents (extract from all the modules into the single all-static location)
18 ./manage.py collectstatic --noinput
23 allst: clean-static static
25 #################### sync : push current code on a (devel) box running myslice
26 SSHURL:=root@$(MYSLICEBOX):/
27 SSHCOMMAND:=ssh root@$(MYSLICEBOX)
30 # the config file should probably not be overridden
31 LOCAL_RSYNC_EXCLUDES := --exclude '*.pyc' --exclude settings.py --exclude devel
33 RSYNC_EXCLUDES := --exclude .git --exclude '*~' --exclude TAGS --exclude .DS_Store $(LOCAL_RSYNC_EXCLUDES)
34 # make -n will propagate as rsync -n
35 RSYNC_COND_DRY_RUN := $(if $(findstring n,$(MAKEFLAGS)),--dry-run,)
37 RSYNC := rsync -a -v $(RSYNC_COND_DRY_RUN) $(RSYNC_EXCLUDES)
39 # xxx until we come up with a packaging this is going to be a wild guess
40 INSTALLED=/usr/share/myslice
44 @echo "you need to set MYSLICEBOX, like in e.g."
45 @echo " $(MAKE) MYSLICEBOX=debian04.pl.sophia.inria.fr "$@""
48 +$(RSYNC) ./ $(SSHURL)/$(INSTALLED)/
51 # xxx likewise until we run this under apache it's probably hard to restart from here
54 @echo "you need to set MYSLICEBOX, like in e.g."
55 @echo " $(MAKE) MYSLICEBOX=debian04.pl.sophia.inria.fr "$@""
58 @echo "$@" target not yet implemented; exit; @$(SSHCOMMAND) /etc/init.d/apache2 restart