megacli/debian/rules

49 lines
1.3 KiB
Plaintext
Raw Normal View History

2013-08-14 23:08:59 +02:00
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
build: build-arch build-indep
build-arch:
build-indep:
clean:
dh_testdir
dh_testroot
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
install $(CURDIR)/debian/megacli.wrapper $(CURDIR)/debian/megacli/usr/sbin/megacli
ifeq ($(DEB_BUILD_ARCH),amd64)
2016-05-26 17:51:14 +02:00
install $(CURDIR)/amd64/opt/MegaRAID/MegaCli/MegaCli64 $(CURDIR)/debian/megacli/usr/lib/megacli/megacli.real
install $(CURDIR)/amd64/opt/MegaRAID/MegaCli/libstorelibir-2.so.14.07-0 $(CURDIR)/debian/megacli/usr/lib/megacli/libstorelibir-2.so.14.07-0
2013-08-14 23:08:59 +02:00
endif
ifeq ($(DEB_BUILD_ARCH),i386)
2016-05-26 17:51:14 +02:00
install $(CURDIR)/i386/opt/MegaRAID/MegaCli/MegaCli $(CURDIR)/debian/megacli/usr/lib/megacli/megacli.real
2014-01-26 01:44:56 +01:00
# Seem to be x64 only
2016-05-26 17:51:14 +02:00
#install $(CURDIR)/i386/opt/MegaRAID/MegaCli/libstorelibir-2.so.14.07-0 $(CURDIR)/debian/megacli/usr/lib/megacli/libstorelibir-2.so.14.07-0
2013-08-14 23:08:59 +02:00
endif
binary-indep:
binary-arch: build install
dh_testdir
dh_testroot
2014-01-26 01:44:56 +01:00
dh_installchangelogs 8.07.14_MegaCLI.txt
2013-08-14 23:08:59 +02:00
dh_installdocs
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-arch
.PHONY: build clean binary-indep binary-arch binary install