File: rules

package info (click to toggle)
munin 1.2.3-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,940 kB
  • ctags: 98
  • sloc: sh: 4,215; makefile: 452; perl: 135
file content (55 lines) | stat: -rwxr-xr-x 992 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#! /usr/bin/make -f

export DH_VERBOSE=

MAKEOPTS = CONFIG=debian/Makefile.config INSTALL_PLUGINS="auto manual snmpauto"

build: build-stamp
build-stamp:
	dh_testdir
	dh_installdirs
	
	$(MAKE) build     $(MAKEOPTS)
	$(MAKE) build-doc $(MAKEOPTS)
	$(MAKE) build-man $(MAKEOPTS)
	
	$(MAKE) install-main $(MAKEOPTS) \
		DESTDIR=debian/munin
	
	$(MAKE) install-node install-node-plugins $(MAKEOPTS) \
		DESTDIR=debian/munin-node
	
	install -m0644 debian/plugins.conf \
		$(CURDIR)/debian/munin-node/etc/munin/plugin-conf.d/munin-node
	
	touch build-stamp

clean:
	dh_testdir
	dh_clean
	-$(MAKE) clean

binary: binary-indep

binary-arch:

binary-indep: build-stamp
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installchangelogs ChangeLog
	dh_installman
	dh_installinit -- "defaults 98 20"
	dh_installcron
	dh_installlogrotate
	dh_installdebconf
	dh_link
	dh_fixperms
	dh_compress
	dh_perl
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

.PHONY: build clean binary binary-arch binary-indep