File: rules

package info (click to toggle)
etbemon 1.3.5-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,572 kB
  • sloc: perl: 17,529; ansic: 774; sh: 405; cpp: 120; makefile: 70
file content (30 lines) | stat: -rwxr-xr-x 775 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
	$(MAKE) -C mon.d clean
	$(MAKE) -C mon-local.d clean
	$(MAKE) -C bin clean

override_dh_auto_build:
	dh_auto_build
	$(MAKE) -C mon.d CFLAGS="$(CFLAGS)" && cd $(CURDIR)
	$(MAKE) -C mon-local.d CFLAGS="$(CFLAGS)"
	$(MAKE) -C bin CFLAGS="$(CFLAGS)" && cd $(CURDIR)

override_dh_install:
	dh_install
	dh_installdocs
	chmod +x $(CURDIR)/debian/mon/usr/lib/mon/alert.d/*.alert
	chmod +x $(CURDIR)/debian/mon/usr/lib/mon/mon.d/*.monitor
	chmod +x $(CURDIR)/debian/mon/usr/lib/mon/mon-local.d/*.monitor
	chmod +x $(CURDIR)/debian/mon/usr/lib/mon/bin/*
	dh_installsystemd

override_dh_installman:
	dh_installman clients/skymon/skymon.1 doc/mon.8 doc/moncmd.1 doc/monshow.1 doc/monfailures.1