working on the DEB builder
[opencloud-plugin.git] / ml2_plugin / Makefile
1 BUILDDIR=build/xos-plugin-1.0
2
3 xos-plugin:
4         # it's python. There's nothing to build
5         # use 'make deb' to make the debian package
6
7 clean:
8         rm -rf build
9
10 install:
11         install -d $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/plugins/xos
12         install -d $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/extensions
13         install xos_db_v2.py $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/plugins/xos/
14         install xos_models_v2.py $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/plugins/xos/
15         install xos_neutron_plugin.py $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/plugins/xos/
16         install nat.py $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/extensions/
17         install __init__.py $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/plugins/xos/
18
19 deb: 
20         rm -rf build
21         mkdir -p $(BUILDDIR)
22         cp Makefile *.py $(BUILDDIR)/
23         mkdir $(BUILDDIR)/debian        
24         mkdir $(BUILDDIR)/debian/source
25         cp debian/changelog debian/control debian/rules debian/compat debian/copyright $(BUILDDIR)/debian/
26         cp debian/source/format $(BUILDDIR)/debian/source/
27         cd $(BUILDDIR); debuild -i -us -uc -A
28
29 nuke:
30         rm -rf /usr/lib/python2.7/dist-packages/neutron/plugins/xos
31         rm -f /usr/lib/python2.7/dist-packages/neutron/extensions/nat.py*