File: rules

package info (click to toggle)
darkstat 3.0.721-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 784 kB
  • sloc: ansic: 6,802; sh: 738; javascript: 213; makefile: 154; php: 15
file content (34 lines) | stat: -rwxr-xr-x 917 bytes parent folder | download
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
#!/usr/bin/make -f

include /usr/share/dpkg/buildflags.mk
-include /usr/share/dpkg/buildtools.mk
CC_FOR_BUILD ?= cc

override_dh_clean:
	dh_clean build-stamp configure-stamp config.status config.log install-tamp config.sub config.guess
	[ ! -f Makefile ] || $(MAKE) clean
	[ ! -f Makefile ] || rm -f Makefile
	[ ! -f config.h ] || rm -f config.h
	[ ! -f darkstat.8 ] || rm -f darkstat.8
	debconf-updatepo

override_dh_auto_configure:
	dh_auto_configure -- CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CPPFLAGS="$(CPPFLAGS)"

override_dh_auto_build:
	dh_auto_build -- HOSTCC=$(CC_FOR_BUILD) HOSTCFLAGS="$(patsubst -m%,,$(CPPFLAGS) $(CFLAGS) $(LDFLAGS))"

override_dh_auto_install:
	$(MAKE) install DESTDIR=$(CURDIR)/debian/darkstat

override_dh_installinit:
	dh_installinit -R

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog

override_dh_installsystemd:
	dh_installsystemd --no-enable --no-start

%:
	dh $@