]> git.proxmox.com Git - corosync-pve.git/blob - debian/rules
imported from svn 'corosync/trunk'
[corosync-pve.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
12 ifneq "$(wildcard /usr/share/quilt/quilt.make)" ""
13 include /usr/share/quilt/quilt.make
14 endif
15
16 config.status: configure
17 dh_testdir
18 # Add here commands to configure the package.
19 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
20 cp -f /usr/share/misc/config.sub config.sub
21 endif
22 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
23 cp -f /usr/share/misc/config.guess config.guess
24 endif
25
26 ./configure --prefix=/usr --sysconfdir=/etc --mandir=\$${prefix}/share/man --localstatedir=/var --infodir=\$${prefix}/share/info --with-lcrso-dir=\$${prefix}/lib/lcrso
27
28 touch config.status
29
30 build: patch build-stamp
31 build-stamp: config.status
32 dh_testdir
33
34 # Add here commands to compile the package.
35 $(MAKE)
36
37 touch $@
38
39 clean: unpatch
40 dh_testdir
41 dh_testroot
42 rm -f build-stamp
43
44 # Add here commands to clean up after the build process.
45 [ ! -f Makefile ] || $(MAKE) distclean
46 rm -f config.sub config.guess
47
48 dh_clean
49
50 install: install-stamp
51 install-stamp: build
52 dh_testdir
53 dh_testroot
54 dh_clean -k
55 dh_installdirs
56
57 # Add here commands to install the package into debian/tmp
58 $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
59
60 # we do not use corosync-keygen
61 rm $(CURDIR)/debian/tmp/usr/sbin/corosync-keygen
62
63 chmod 0644 $(CURDIR)/debian/tmp/usr/lib/lcrso/*.lcrso
64 strip -s $(CURDIR)/debian/tmp/usr/lib/lcrso/*.lcrso
65
66 touch $@
67
68
69 # Build architecture-independent files here.
70 binary-indep: build install
71 # We have nothing to do by default.
72
73 # Build architecture-dependent files here.
74 binary-arch: build install
75 dh_testdir
76 dh_testroot
77 dh_installchangelogs
78 dh_installdocs
79 dh_installexamples
80 dh_install
81 # dh_installmenu
82 # dh_installdebconf
83 dh_installlogrotate
84 # dh_installemacsen
85 # dh_installpam
86 # dh_installmime
87 dh_installinit
88 # dh_installcron
89 # dh_installinfo
90 dh_installman
91 dh_link
92 dh_strip
93 dh_compress
94 dh_fixperms
95 # dh_perl
96 # dh_python
97 dh_makeshlibs
98 dh_installdeb
99 dh_shlibdeps
100 dh_gencontrol
101 dh_md5sums
102 dh_builddeb
103
104 binary: binary-indep binary-arch
105 .PHONY: build clean binary-indep binary-arch binary install