Statistics
| Branch: | Tag: | Revision:

root / snf-image-host / debian / rules @ 5aa106c3

History | View | Annotate | Download (1.8 kB)

1 e22be424 Constantinos Venetsanopoulos
#!/usr/bin/make -f
2 e22be424 Constantinos Venetsanopoulos
# -*- makefile -*-
3 e22be424 Constantinos Venetsanopoulos
4 e22be424 Constantinos Venetsanopoulos
# Uncomment this to turn on verbose mode.
5 e22be424 Constantinos Venetsanopoulos
#export DH_VERBOSE=1
6 e22be424 Constantinos Venetsanopoulos
7 e22be424 Constantinos Venetsanopoulos
8 e22be424 Constantinos Venetsanopoulos
config.status: configure
9 e22be424 Constantinos Venetsanopoulos
10 e22be424 Constantinos Venetsanopoulos
configure:
11 e22be424 Constantinos Venetsanopoulos
	dh_testdir
12 e22be424 Constantinos Venetsanopoulos
	./autogen.sh
13 e22be424 Constantinos Venetsanopoulos
	./configure $(CROSS) --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-progress-monitor
14 e22be424 Constantinos Venetsanopoulos
15 e22be424 Constantinos Venetsanopoulos
16 e22be424 Constantinos Venetsanopoulos
build: build-arch build-indep
17 e22be424 Constantinos Venetsanopoulos
18 e22be424 Constantinos Venetsanopoulos
build-arch: build-stamp
19 e22be424 Constantinos Venetsanopoulos
20 e22be424 Constantinos Venetsanopoulos
build-indep: build-stamp
21 e22be424 Constantinos Venetsanopoulos
22 e22be424 Constantinos Venetsanopoulos
build-stamp:  config.status 
23 e22be424 Constantinos Venetsanopoulos
	dh_testdir
24 e22be424 Constantinos Venetsanopoulos
25 e22be424 Constantinos Venetsanopoulos
	# Add here commands to compile the package.
26 e22be424 Constantinos Venetsanopoulos
	$(MAKE)
27 e22be424 Constantinos Venetsanopoulos
	#docbook-to-man debian/ganeti-instance-image.sgml > ganeti-instance-image.1
28 e22be424 Constantinos Venetsanopoulos
29 e22be424 Constantinos Venetsanopoulos
	touch $@
30 e22be424 Constantinos Venetsanopoulos
31 e22be424 Constantinos Venetsanopoulos
clean: 
32 e22be424 Constantinos Venetsanopoulos
	dh_testdir
33 e22be424 Constantinos Venetsanopoulos
	dh_testroot
34 e22be424 Constantinos Venetsanopoulos
	rm -f build-stamp 
35 e22be424 Constantinos Venetsanopoulos
36 e22be424 Constantinos Venetsanopoulos
	# Add here commands to clean up after the build process.
37 e22be424 Constantinos Venetsanopoulos
	[ ! -f Makefile ] || $(MAKE) distclean
38 e22be424 Constantinos Venetsanopoulos
	rm -f config.sub config.guess
39 e22be424 Constantinos Venetsanopoulos
	rm -rf aclocal.m4 autotools configure Makefile.in
40 e22be424 Constantinos Venetsanopoulos
41 e22be424 Constantinos Venetsanopoulos
	dh_clean 
42 e22be424 Constantinos Venetsanopoulos
43 e22be424 Constantinos Venetsanopoulos
install: build
44 e22be424 Constantinos Venetsanopoulos
	dh_testdir
45 e22be424 Constantinos Venetsanopoulos
	dh_testroot
46 e22be424 Constantinos Venetsanopoulos
	dh_prep
47 e22be424 Constantinos Venetsanopoulos
	dh_installdirs
48 e22be424 Constantinos Venetsanopoulos
49 e22be424 Constantinos Venetsanopoulos
	# Add here commands to install the package into debian/ganeti-instance-image.
50 e22be424 Constantinos Venetsanopoulos
	mkdir -p $(CURDIR)/debian/snf-image-host/etc/default
51 e22be424 Constantinos Venetsanopoulos
	cp defaults $(CURDIR)/debian/snf-image-host/etc/default/snf-image
52 e22be424 Constantinos Venetsanopoulos
	$(MAKE) DESTDIR=$(CURDIR)/debian/snf-image-host install
53 e22be424 Constantinos Venetsanopoulos
54 e22be424 Constantinos Venetsanopoulos
55 e22be424 Constantinos Venetsanopoulos
# Build architecture-independent files here.
56 e22be424 Constantinos Venetsanopoulos
binary-indep: build install
57 e22be424 Constantinos Venetsanopoulos
	dh_testdir
58 e22be424 Constantinos Venetsanopoulos
	dh_testroot
59 e22be424 Constantinos Venetsanopoulos
	dh_installchangelogs ChangeLog
60 e22be424 Constantinos Venetsanopoulos
	dh_installdocs
61 e22be424 Constantinos Venetsanopoulos
	dh_installexamples
62 e22be424 Constantinos Venetsanopoulos
	dh_install
63 e22be424 Constantinos Venetsanopoulos
#	dh_installmenu
64 e22be424 Constantinos Venetsanopoulos
#	dh_installdebconf	
65 e22be424 Constantinos Venetsanopoulos
#	dh_installlogrotate
66 e22be424 Constantinos Venetsanopoulos
#	dh_installemacsen
67 e22be424 Constantinos Venetsanopoulos
#	dh_installpam
68 e22be424 Constantinos Venetsanopoulos
#	dh_installmime
69 e22be424 Constantinos Venetsanopoulos
#	dh_python
70 e22be424 Constantinos Venetsanopoulos
#	dh_installinit
71 e22be424 Constantinos Venetsanopoulos
#	dh_installcron
72 e22be424 Constantinos Venetsanopoulos
#	dh_installinfo
73 e22be424 Constantinos Venetsanopoulos
	dh_installman
74 e22be424 Constantinos Venetsanopoulos
	dh_link
75 e22be424 Constantinos Venetsanopoulos
	dh_strip
76 e22be424 Constantinos Venetsanopoulos
	dh_compress
77 e22be424 Constantinos Venetsanopoulos
	dh_fixperms
78 e22be424 Constantinos Venetsanopoulos
#	dh_perl
79 e22be424 Constantinos Venetsanopoulos
#	dh_makeshlibs
80 e22be424 Constantinos Venetsanopoulos
	dh_installdeb
81 e22be424 Constantinos Venetsanopoulos
	dh_shlibdeps
82 e22be424 Constantinos Venetsanopoulos
	dh_gencontrol
83 e22be424 Constantinos Venetsanopoulos
	dh_md5sums
84 e22be424 Constantinos Venetsanopoulos
	dh_builddeb
85 e22be424 Constantinos Venetsanopoulos
86 e22be424 Constantinos Venetsanopoulos
# Build architecture-dependent files here.
87 e22be424 Constantinos Venetsanopoulos
binary-arch: build install
88 e22be424 Constantinos Venetsanopoulos
# We have nothing to do by default.
89 e22be424 Constantinos Venetsanopoulos
90 e22be424 Constantinos Venetsanopoulos
binary: binary-indep binary-arch
91 e22be424 Constantinos Venetsanopoulos
.PHONY: build clean binary-indep binary-arch binary install