File: rules

package info (click to toggle)
olpc-powerd 23-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,052 kB
  • sloc: sh: 4,456; ansic: 1,386; makefile: 139
file content (18 lines) | stat: -rwxr-xr-x 375 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

export DEB_CPPFLAGS_MAINT_APPEND = -D_GNU_SOURCE

%:
	dh $@

override_dh_clean:
	dh_clean
	rm -f version
	$(RM) debian/powerd.conf

execute_before_dh_install: debian/powerd.conf

debian/powerd.conf:
	cp powerd.conf.dist debian/powerd.conf
	# we don't use pwrlog stuff
	sed -i s/^config_PWRLOG_INTERVAL=.*/config_PWRLOG_INTERVAL=\"0\"/g debian/powerd.conf