+$(modules):
+ # Install in the current directory so that we can import it while developing
+ cd $@ && \
+ python setup.py build && \
+ python setup.py install_lib --install-dir=$(PWD)
+
+$(modules-install): %-install:
+ cd $* && \
+ python setup.py install_lib --install-dir=$(DESTDIR)/$(datadir)/plc_api
+
+$(modules-clean): %-clean:
+ cd $* && python setup.py clean && rm -rf build
+
+clean: $(modules-clean)