49 lines
1.2 KiB
Makefile
Executable File
49 lines
1.2 KiB
Makefile
Executable File
#!/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/storcli.wrapper $(CURDIR)/debian/storcli/usr/sbin/storcli
|
|
ifeq ($(DEB_BUILD_ARCH),amd64)
|
|
install $(CURDIR)/opt/storRAID/storCli/storCli64 $(CURDIR)/debian/storcli/usr/lib/storcli/storcli.real
|
|
install $(CURDIR)/opt/storRAID/storCli/libstorelibir-2.so.14.07-0 $(CURDIR)/debian/storcli/usr/lib/storcli/libstorelibir-2.so.14.07-0
|
|
endif
|
|
ifeq ($(DEB_BUILD_ARCH),i386)
|
|
install $(CURDIR)/opt/storRAID/storCli/storCli $(CURDIR)/debian/storcli/usr/lib/storcli/storcli.real
|
|
# Seem to be x64 only
|
|
#install $(CURDIR)/opt/storRAID/storCli/libstorelibir-2.so.14.07-0 $(CURDIR)/debian/storcli/usr/lib/storcli/libstorelibir-2.so.14.07-0
|
|
endif
|
|
|
|
binary-indep:
|
|
binary-arch: build install
|
|
dh_testdir
|
|
dh_testroot
|
|
dh_installchangelogs 8.07.14_storCLI.txt
|
|
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
|