Statistics
| Branch: | Tag: | Revision:

root / debian / rules @ 2a7694e7

History | View | Annotate | Download (1.4 kB)

1
#!/usr/bin/make -f
2

    
3
VERSION := $(shell cat version)
4

    
5
%:
6
	dh $@
7

    
8
override_dh_auto_clean:
9
	dh_auto_clean -Dsnf-image-host
10
	cd snf-image-host; rm -f autotools/{missing,install-sh} \
11
	rm -f Makefile.in aclocal.m4 configure config.status config.log
12
	dh_auto_clean -Dsnf-image-helper
13
	cd snf-image-helper ; rm -rf autotools; \
14
	rm -f Makefile.in aclocal.m4 configure config.status config.log tasks/Makefile.in
15
	rm -f debian/version_pinning.pref
16
	rm -f debian/snf-image.templates
17

    
18
override_dh_auto_build:
19
	dh_auto_build -Dsnf-image-host
20
	dh_auto_build -Dsnf-image-helper
21
	sed -e 's|@DEBIAN_VERSION[@]|$(DEB_DEVFLOW_DEBIAN_VERSION)|g' \
22
		debian/version_pinning.pref.in > debian/version_pinning.pref
23
	sed -e 's|@VERSION[@]|$(VERSION)|g' \
24
		debian/snf-image.templates.in > debian/snf-image.templates
25

    
26
override_dh_auto_configure:
27
	cd snf-image-host; ./autogen.sh
28
	dh_auto_configure -Dsnf-image-host -- --enable-version-consistency-check
29
	cd snf-image-helper; ./autogen.sh
30
	dh_auto_configure -Dsnf-image-helper
31

    
32
override_dh_auto_install:
33
	dh_auto_install -Dsnf-image-host --destdir=debian/snf-image
34
	dh_auto_install -Dsnf-image-helper --destdir=debian/snf-image-helper
35

    
36
override_dh_install:
37
	dh_install
38
	install -D -m 0600 snf-image-host/defaults $(CURDIR)/debian/snf-image/etc/default/snf-image
39
	rm -f $(CURDIR)/debian/snf-image-helper/usr/share/doc/snf-image-helper/COPYING
40

    
41
override_dh_fixperms:
42
	dh_fixperms --exclude debian/snf-image/etc/default/snf-image
43