2 ## (Re)builds Python metafile (__init__.py) and documentation
4 # overwritten by the specfile
10 install: keyconvert-install python-install
12 clean: keyconvert-clean python-clean
14 .PHONY: all install clean
21 $(MAKE) -C keyconvert install
24 $(MAKE) -C keyconvert clean
26 .PHONY: keyconvert keyconvert-install keyconvert-clean
32 python setup.py install --root=$(DESTDIR)
38 .PHONY: python python-install python-clean
41 # are the .java files used ?
43 find . -type f | egrep -v '/\.svn/|TAGS|\.py[co]$$|\.doc$$|\.html$$|\.pdf$$' | xargs etags
48 # 2 forms are supported
49 # (*) if your plc root context has direct ssh access:
50 # make sync PLC=private.one-lab.org
51 # (*) otherwise, entering through the root context
52 # make sync PLCHOST=testbox1.inria.fr GUEST=vplc03.inria.fr
56 SSHURL:=root@$(PLCHOST):/vservers/$(GUEST)
57 SSHCOMMAND:=ssh root@$(PLCHOST) vserver $(GUEST)
62 SSHCOMMAND:=ssh root@$(PLC)
65 LOCAL_RSYNC_EXCLUDES := --exclude '*.pyc'
66 RSYNC_EXCLUDES := --exclude .svn --exclude CVS --exclude '*~' --exclude TAGS $(LOCAL_RSYNC_EXCLUDES)
67 RSYNC_COND_DRY_RUN := $(if $(findstring n,$(MAKEFLAGS)),--dry-run,)
68 RSYNC := rsync -a -v $(RSYNC_COND_DRY_RUN) $(RSYNC_EXCLUDES)
72 @echo "sync: You must define, either PLC, or PLCHOST & GUEST, on the command line"
73 @echo " e.g. make sync PLC=private.one-lab.org"
74 @echo " or make sync PLCHOST=testbox1.inria.fr GUEST=vplc03.inria.fr"
77 +$(RSYNC) ./sfa/ $(SSHURL)/usr/lib/python2.5/site-packages/sfa/
78 +$(RSYNC) ./config/sfa-config-tty $(SSHURL)/usr/bin
79 $(SSHCOMMAND) exec service sfa restart