File: rules

package info (click to toggle)
xsysinfo 1.7-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 264 kB
  • sloc: ansic: 2,152; makefile: 17
file content (25 lines) | stat: -rwxr-xr-x 452 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
#!/usr/bin/make -f

%:
	dh $@

CDEBUGFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	CDEBUGFLAGS += -O0
else
	CDEBUGFLAGS += -O2
endif

override_dh_auto_build:
	dh_auto_build
	xmkmf
	$(MAKE) CDEBUGFLAGS="$(CDEBUGFLAGS)" xsysinfo

#install: build
#	$(MAKE) DESTDIR=$(CURDIR)/debian/xsysinfo install

override_dh_auto_install:
	dh_installchangelogs	CHANGES
	dh_installdocs		README
	dh_installman		debian/xsysinfo.man
	dh_auto_install