deb build system
[opencloud-plugin.git] / Makefile
1 BUILDDIR=build/opencloud-plugin-1.0
2
3 clean:
4
5 install:
6         install -d $(DESTDIR)/usr/share/pyshared/neutron/plugins/opencloud
7         install -d $(DESTDIR)/usr/share/pyshared/neutron/extensions
8         install -d $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/plugins/opencloud
9         install -d $(DESTDIR)/usr/lib/python2.7/dist-packages/nuetron/extensions
10         install opencloud_db_v2.py $(DESTDIR)/usr/share/pyshared/neutron/plugins/opencloud/
11         install opencloud_models_v2.py $(DESTDIR)/usr/share/pyshared/neutron/plugins/opencloud/
12         install opencloud_neutron_plugin.py $(DESTDIR)/usr/share/pyshared/neutron/plugins/opencloud/
13         install nat.py $(DESTDIR)/usr/share/pyshared/neutron/extensions/
14         install __init__.py $(DESTDIR)/usr/share/pyshared/neutron/plugins/opencloud/
15         ln -s /usr/share/pyshared/neutron/plugins/opencloud/opencloud_neutron_plugin.py $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/plugins/opencloud/opencloud_neutron_plugin.py
16         ln -s /usr/share/pyshared/neutron/plugins/opencloud/opencloud_models_v2.py $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/plugins/opencloud/opencloud_models_v2.py
17         ln -s /usr/share/pyshared/neutron/plugins/opencloud/opencloud_db_v2.py $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/plugins/opencloud/opencloud_db_v2.py
18         ln -s /usr/share/pyshared/neutron/plugins/opencloud/__init__.py $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/plugins/opencloud/__init__.py
19
20
21 deb: 
22         rm -rf build
23         mkdir -p $(BUILDDIR)
24         cp Makefile *.py $(BUILDDIR)/
25         mkdir $(BUILDDIR)/debian        
26         mkdir $(BUILDDIR)/debian/source
27         cp debian/changelog debian/control debian/rules debian/compat debian/copyright $(BUILDDIR)/debian/
28         cp debian/source/format $(BUILDDIR)/debian/source/
29         cd $(BUILDDIR); debuild -i -us -uc -B