9
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
14
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
18
configure: configure-stamp
21
./configure --prefix=/usr \
23
--mandir=/usr/share/man
27
build: build-arch build-indep
29
build-arch: build-arch-stamp
30
build-arch-stamp: configure-stamp
32
# Add here commands to compile the arch part of the package.
35
build-indep: build-indep-stamp
36
build-indep-stamp: configure-stamp
38
# Add here commands to compile the indep part of the package.
44
rm -f build-arch-stamp build-indep-stamp configure-stamp
46
# Add here commands to clean up after the build process.
51
install: install-arch #install-indep
58
# Add here commands to install the indep part of the package into
59
# debian/<package>-doc.
61
# $(MAKE) install-doc DESTDIR=$(CURDIR)/debian/tmp/ipmitool-doc
70
# Add here commands to install the arch part of the package into
72
$(MAKE) install DESTDIR=$(CURDIR)/debian/ipmitool
74
# No need to have two copies of the license text in the package.
75
$(RM) $(CURDIR)/debian/ipmitool/usr/share/doc/ipmitool/COPYING
77
# Move upstream changelog to correct filename.
78
mv $(CURDIR)/debian/ipmitool/usr/share/doc/ipmitool/ChangeLog \
79
$(CURDIR)/debian/ipmitool/usr/share/doc/ipmitool/changelog
81
# Compress to avoid lintian warning. Not sure why dh_compress
83
gzip -9 $(CURDIR)/debian/ipmitool/usr/share/doc/ipmitool/changelog
86
# Must not depend on anything. This is to be called by
87
# binary-arch/binary-multi
88
# in another 'make' thread.
104
# Build architecture independant packages using the common target.
105
binary-indep: build-indep install-indep
106
$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
108
# Build architecture dependant packages using the common target.
109
binary-arch: build-arch install-arch
110
$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
112
binary: binary-arch #binary-indep
113
.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure