5
INSTALL_PROGRAM := install -m755 -s
6
INSTALL_DATA := install -m644
8
# Some special build options
9
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
11
ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
12
INSTALL_PROGRAM := install -m755
18
include debian/scripts/dbs-build.mk
21
ifeq (,$(DEB_BUILD_GNU_TYPE))
22
include debian/scripts/dpkg-arch.mk
25
config_options = --prefix=/usr
27
build: $(STAMP_DIR)/build
28
$(STAMP_DIR)/build: $(STAMP_DIR)/configure
30
cd $(BUILD_TREE) && $(MAKE)
31
touch $(STAMP_DIR)/build
33
$(BUILD_TREE)/configure: $(BUILD_TREE)/configure.in
34
cd $(BUILD_TREE) && libtoolize -c -f && autoconf
36
configure: $(STAMP_DIR)/configure
37
$(STAMP_DIR)/configure: $(STAMP_DIR)/patch $(BUILD_TREE)/configure
39
cd $(BUILD_TREE) && CFLAGS="$(CFLAGS)" ./configure $(config_options) \
40
--build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
41
touch $(STAMP_DIR)/configure
45
rm -rf $(STAMP_DIR) $(SOURCE_DIR)
46
perl debian/scripts/dh_split clean
49
install: build $(dh_mak_deps)
55
cd $(BUILD_TREE) && $(MAKE) DESTDIR="$(shell pwd)/debian/tmp" \
56
INSTALL_PROGRAM="$(INSTALL_PROGRAM)" install
58
ifeq ($(DEB_HOST_GNU_SYSTEM),linux)
59
sed -e 's%/var/db%/var/lib/misc%' < debian/local/default \
60
> debian/tmp/etc/default/libnss-db
61
chmod 644 debian/tmp/etc/default/libnss-db
62
$(INSTALL_DATA) -D debian/local/db-Makefile \
63
debian/tmp/var/lib/misc/Makefile
65
$(INSTALL_DATA) -D debian/local/default \
66
debian/tmp/etc/default/libnss-db
67
$(INSTALL_DATA) -D debian/local/db-Makefile \
68
debian/tmp/var/db/Makefile
72
binary-indep: build install $(dh_mak_deps)
74
binary-arch: build install $(dh_mak_deps)
77
dh_installchangelogs $(BUILD_TREE)/ChangeLog
78
dh_installdocs $(BUILD_TREE)/{AUTHORS,NEWS,README}
79
dh_installman debian/local/makedb.1
90
binary: binary-indep binary-arch