File: rules

package info (click to toggle)
ddccontrol 0.4.2-11
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 3,100 kB
  • sloc: sh: 9,430; ansic: 6,063; xml: 1,809; makefile: 118
file content (32 lines) | stat: -rwxr-xr-x 738 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
#!/usr/bin/make -f

LDFLAGS+=-Wl,--as-needed
export LIBS=-lm

ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes)
	SUBSTVARS = -Vdist:Depends="gksu"
else
	SUBSTVARS = -Vdist:Depends=""
endif

%:
	dh $@ --with autotools_dev

override_dh_auto_test:

override_dh_gencontrol:
	dh_gencontrol -- $(SUBSTVARS)

override_dh_install:
	dh_install -plibddccontrol-dev
	# Strip wrong #include "config.h" from ddcci.h (bug#518083)
	cd debian/libddccontrol-dev/usr/include/ddccontrol/ && \
		grep -v '#include "config.h"' ddcci.h > ddcci.h.new && \
		mv ddcci.h.new ddcci.h
	dh_install --remaining-packages

override_dh_clean:
	rm -f src/gnome-ddcc-applet/Makefile
	rm -f doc/Makefile
	rm -f src/gddccontrol/gddccontrol.desktop
	dh_clean