Statistics
| Branch: | Tag: | Revision:

root / snf-image-helper / debian / rules @ dd84ce16

History | View | Annotate | Download (1.8 kB)

1
#!/usr/bin/make -f
2
# -*- makefile -*-
3

    
4
# Uncomment this to turn on verbose mode.
5
#export DH_VERBOSE=1
6

    
7

    
8
config.status: configure
9

    
10
configure:
11
	dh_testdir
12
	./autogen.sh
13
	./configure $(CROSS) --prefix=/usr --localstatedir=/var --sysconfdir=/etc
14

    
15

    
16
build: build-arch build-indep
17

    
18
build-arch: build-stamp
19

    
20
build-indep: build-stamp
21

    
22
build-stamp:  config.status 
23
	dh_testdir
24

    
25
	# Add here commands to compile the package.
26
	$(MAKE)
27
	#docbook-to-man debian/ganeti-instance-image.sgml > ganeti-instance-image.1
28

    
29
	touch $@
30

    
31
clean: 
32
	dh_testdir
33
	dh_testroot
34
	rm -f build-stamp 
35

    
36
	# Add here commands to clean up after the build process.
37
	[ ! -f Makefile ] || $(MAKE) distclean
38
	rm -f config.sub config.guess
39
	rm -rf aclocal.m4 autotools configure Makefile.in
40

    
41
	dh_clean 
42

    
43
install: build
44
	dh_testdir
45
	dh_testroot
46
	dh_prep
47
	dh_installdirs
48

    
49
	# Add here commands to install the package into debian/ganeti-instance-image.
50
	$(MAKE) DESTDIR=$(CURDIR)/debian/snf-image-helper install
51
	# Remove duplicate COPYING file. It already exists
52
	# under /usr/share/common-licences/ in debian systems
53
	rm $(CURDIR)/debian/snf-image-helper/usr/share/doc/snf-image-helper/COPYING
54

    
55

    
56
# Build architecture-independent files here.
57
binary-indep: build install
58
	dh_testdir
59
	dh_testroot
60
	dh_installchangelogs ChangeLog
61
	dh_installdocs
62
	dh_installexamples
63
	dh_install
64
#	dh_installmenu
65
#	dh_installdebconf	
66
#	dh_installlogrotate
67
#	dh_installemacsen
68
#	dh_installpam
69
#	dh_installmime
70
	dh_python2
71
#	dh_installinit
72
#	dh_installcron
73
#	dh_installinfo
74
	dh_installman
75
	dh_link
76
	dh_strip
77
	dh_compress
78
	dh_fixperms
79
#	dh_perl
80
#	dh_makeshlibs
81
	dh_installdeb
82
	dh_shlibdeps
83
	dh_gencontrol
84
	dh_md5sums
85
	dh_builddeb
86

    
87
# Build architecture-dependent files here.
88
binary-arch: build install
89
# We have nothing to do by default.
90

    
91
binary: binary-indep binary-arch
92
.PHONY: build clean binary-indep binary-arch binary install