File: rules

package info (click to toggle)
reiserfsprogs 1%3A3.6.27-4
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 3,148 kB
  • sloc: ansic: 27,337; sh: 4,143; makefile: 86
file content (39 lines) | stat: -rwxr-xr-x 1,293 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
33
34
35
36
37
38
39
#! /usr/bin/make -f

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

#include /usr/share/cdbs/1/rules/simple-patchsys.mk

# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)

#export DEB_CFLAGS_MAINT_APPEND  = -std=gnu90

DEB=reiserfsprogs
SMALLUDEB=mkreiserfs-udeb
FULLUDEB=reiserfsprogs-udeb

ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
	INSTALL_PROGRAM += -s
endif

%:
	dh $@ 

override_dh_auto_configure:
	dh_auto_configure -- --disable-shared --disable-static

override_dh_install:
	dh_install
	install -m 755 debian/fsck.reiserfs debian/$(DEB)/sbin
	install -m 755 debian/hooks/reiserfsprogs debian/$(DEB)/usr/share/initramfs-tools/hooks
	dh_link -p$(DEB) usr/share/man/man8/mkreiserfs.8.gz usr/share/man/man8/mkfs.reiserfs.8.gz
	dh_link -p$(DEB) usr/share/man/man8/reiserfsck.8.gz usr/share/man/man8/fsck.reiserfs.8.gz
#	sed -i "/dependency_libs/ s/'.*'/''/" "$(CURDIR)/debian/reiserfsprogs/usr/lib/<la-file>"
#	sed -i "/dependency_libs/ s/'.*'/''/" `find . -name '*.la'`

#override_dh_makeshlibs:
#	dh_makeshlibs --add-udeb=mkreiserfs-udeb