X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=2df9ee963d4c0493ccd17eb630bbe1ae90c03ec3;hb=196d474841ff8cbfed8ddff43f01ffb7933a15d8;hp=e7bc72d9623555f5cec91c7b087affd734adb907;hpb=94e91fd38514d6e2c3f638acb098e34ad8632407;p=plcapi.git diff --git a/Makefile b/Makefile index e7bc72d..2df9ee9 100644 --- a/Makefile +++ b/Makefile @@ -7,8 +7,8 @@ # $Id$ # -# Metafiles -init := PLC/__init__.py PLC/Methods/__init__.py +# Metafiles - manage Legacy/ and Accessors by hand +init := PLC/__init__.py PLC/Methods/__init__.py # python-pycurl and python-psycopg2 avail. from fedora 5 # we used to ship our own version of psycopg2 and pycurl, for fedora4 @@ -51,8 +51,8 @@ index-clean: rm $(init) #################### regenerate indexes - not used by the build, as both files are svn added - please update as appropriate -# All .py files in PLC/ +########## PLC/ # the current content of __init__.py PLC_now := $(sort $(shell fgrep -v '"' PLC/__init__.py 2>/dev/null)) # what should be declared @@ -65,7 +65,7 @@ endif PLC/__init__.py: (echo 'all = """' ; cd PLC; ls -1 *.py | grep -v __init__ | sed -e 's,.py$$,,' ; echo '""".split()') > $@ - +########## Methods/ # the current content of __init__.py METHODS_now := $(sort $(shell fgrep -v '"' PLC/Methods/__init__.py 2>/dev/null)) # what should be declared @@ -76,8 +76,9 @@ ifneq ($(METHODS_now),$(METHODS_files)) PLC/Methods/__init__.py: force endif PLC/Methods/__init__.py: - (echo 'methods = """' ; cd PLC/Methods; ls -1 *.py system/*.py | grep -v __init__ | sed -e 's,.py$$,,' -e 's,system/,system.,' ; echo '""".split()') > $@ + (echo 'native_methods = """' ; cd PLC/Methods; ls -1 *.py system/*.py | grep -v __init__ | sed -e 's,.py$$,,' -e 's,system/,system.,' ; echo '""".split()') > $@ +########## force: .PHONY: all install force clean index tags $(subdirs) @@ -95,10 +96,10 @@ tags: # (*) otherwise, entering through the root context # make sync PLCHOST=testbox1.inria.fr GUEST=vplc03.inria.fr -ifdef VSERVER +ifdef GUEST ifdef PLCHOST -SSHURL:=root@$(PLCHOST):/vservers/$(VSERVER) -SSHCOMMAND:=ssh root@$(PLCHOST) vserver $(VSERVER) +SSHURL:=root@$(PLCHOST):/vservers/$(GUEST) +SSHCOMMAND:=ssh root@$(PLCHOST) vserver $(GUEST) endif endif ifdef PLC