##########
all: keyconvert python wsdl
-install: keyconvert-install python-install wsdl-install
+install: keyconvert-install python-install wsdl-install xmlbuilder-install
clean: keyconvert-clean python-clean wsdl-clean
##########
python:
+xmlbuilder-install:
+ cd xmlbuilder-0.9
+ python setup.py install
+ cd -
+
python-install:
python setup.py install --root=$(DESTDIR)
+ chmod 444 $(DESTDIR)/etc/sfa/default_config.xml
python-clean:
python setup.py clean
rm $(init)
-.PHONY: python python-install python-clean
+.PHONY: python python-install python-clean xmlbuilder-install
##########
wsdl:
$(MAKE) -C wsdl
RSYNC_COND_DRY_RUN := $(if $(findstring n,$(MAKEFLAGS)),--dry-run,)
RSYNC := rsync -a -v $(RSYNC_COND_DRY_RUN) $(RSYNC_EXCLUDES)
+BINS = ./config/sfa-config-tty ./config/gen-sfa-cm-config.py \
+ ./sfa/plc/sfa-import-plc.py ./sfa/plc/sfa-nuke-plc.py ./sfa/server/sfa-server.py \
+ ./sfa/client/sfi.py ./sfa/client/getNodes.py ./sfa/client/getRecord.py \
+ ./sfa/client/setRecord.py ./sfa/client/sfadump.py
+
sync:
ifeq (,$(SSHURL))
@echo "sync: You must define, either PLC, or PLCHOST & GUEST, on the command line"
@exit 1
else
+$(RSYNC) ./sfa/ $(SSHURL)/usr/lib/python2.5/site-packages/sfa/
- +$(RSYNC) ./config/sfa-config-tty $(SSHURL)/usr/bin
+ +$(RSYNC) $(BINS) $(SSHURL)/usr/bin
$(SSHCOMMAND) exec service sfa restart
endif