File: rules

package info (click to toggle)
partclone 0.3.23%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,152 kB
  • sloc: ansic: 112,812; sh: 4,756; xml: 2,410; makefile: 502; perl: 106; asm: 35; sed: 16
file content (40 lines) | stat: -rwxr-xr-x 1,424 bytes parent folder | download | duplicates (12)
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
35
36
37
38
39
40
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@ --with autoreconf --with autotools-dev

override_dh_auto_configure:
	# Add here commands to configure the package.
	#cp /usr/share/misc/config.sub .
	#cp /usr/share/misc/config.guess .
	#autoreconf
	#./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info LDFLAGS="-Wl,-z,defs" --enable-ncursesw --enable-extfs --enable-static
	# dh_auto_configure -- --enable-ncursesw --enable-extfs --enable-static # for normal linux
	dh_auto_configure -- --enable-ncursesw --enable-all --enable-static # for clonezilla dist

override_dh_auto_install:
	$(MAKE) DESTDIR=$$(pwd)/debian/partclone prefix=/usr install

override_dh_auto_clean:
	dh_auto_clean
	rm -f get_lib_version
	rm -f config.sub configure Makefile.in aclocal.m4 config.guess
	rm -f src/Makefile.in docs/Makefile.in

override_dh_clean:
	dh_clean -X fail-mbr/fail-mbr.bin.orig

override_dh_strip:
	dh_strip --dbg-package=partclone-dbg