ssacli/debian/rules

59 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

2017-11-10 14:32:57 +01:00
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
DESTDIR = $(CURDIR)/debian/ssacli
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:
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
ifeq ($(DEB_BUILD_ARCH),i386)
2017-11-10 15:15:34 +01:00
install -D -m 755 $(CURDIR)/i386/opt/smartstorageadmin/ssacli/bin/ssacli \
2017-11-10 14:32:57 +01:00
$(DESTDIR)/usr/lib/ssacli/ssacli.real
2017-11-10 15:15:34 +01:00
install -D -m 755 $(CURDIR)/i386/opt/smartstorageadmin/ssacli/bin/ssascripting \
2017-11-10 14:32:57 +01:00
$(DESTDIR)/usr/lib/ssacli/ssascripting.real
endif
ifeq ($(DEB_BUILD_ARCH),amd64)
2017-11-10 15:15:34 +01:00
install -D -m 755 $(CURDIR)/amd64/opt/smartstorageadmin/ssacli/bin/ssacli \
2017-11-10 14:32:57 +01:00
$(DESTDIR)/usr/lib/ssacli/ssacli.real
2017-11-10 15:15:34 +01:00
install -D -m 755 $(CURDIR)/amd64/opt/smartstorageadmin/ssacli/bin/ssascripting \
2017-11-10 14:32:57 +01:00
$(DESTDIR)/usr/lib/ssacli/ssascripting.real
endif
install -D -m 755 $(CURDIR)/debian/ssacli.wrapper \
$(DESTDIR)/usr/sbin/ssacli
install -D -m 755 $(CURDIR)/debian/ssascripting.wrapper \
$(DESTDIR)/usr/sbin/ssascripting
binary-indep: build install
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs debian/upstream_changelog
dh_installdocs
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps -l$(DESTDIR)/usr/lib/ssacli/
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install