File: rules

package info (click to toggle)
solarpowerlog 0.23a-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,624 kB
  • sloc: sh: 11,423; cpp: 7,558; ansic: 1,036; makefile: 96
file content (28 lines) | stat: -rwxr-xr-x 690 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
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# Support parallel build
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
   NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
   MAKEFLAGS += -j$(NUMJOBS)
endif

# enable hardeing
export DEB_BUILD_HARDENING=1

%:
	dh $@ --with autoreconf

override_dh_autoreconf:
	cp tools/solarpowerlog.init debian/
	cp tools/solarpowerlog.default debian/
	# needed when building directly from the git repository.
	# otherwise some files are missing.
	dh_autoreconf ./bootstrap.sh

	
override_dh_clean:
	dh_clean
	rm -f debian/solarpowerlog.init debian/solarpowerlog.default