Statistics
| Branch: | Tag: | Revision:

root / snf-image-host / debian / rules @ 2091e53b

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
	mkdir -p $(CURDIR)/debian/snf-image-host/etc/default
51
	cp defaults $(CURDIR)/debian/snf-image-host/etc/default/snf-image
52
	$(MAKE) DESTDIR=$(CURDIR)/debian/snf-image-host install
53

    
54

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

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

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