Makefile 911 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. PACKAGE=pve-iscsi-zfs-scst
  2. PKGVER=0.0.5
  3. DEB=${PACKAGE}_${PKGVER}_all.deb
  4. DESTDIR=
  5. PERL5DIR=${DESTDIR}/usr/share/perl5
  6. all:
  7. .PHONY: deb
  8. deb: ${DEB}
  9. ${DEB}:
  10. rm -rf build
  11. rsync -a * build
  12. cd build; dpkg-buildpackage -b -us -uc
  13. pwd
  14. echo ${DEB}
  15. lintian ${DEB}
  16. mv ${DEB} releases/
  17. install: PVE
  18. install -d ${PERL5DIR}/PVE/Storage/Custom
  19. install -m 0644 PVE/Storage/Custom/scstZFSPlugin.pm ${PERL5DIR}/PVE/Storage/Custom/
  20. install -d ${PERL5DIR}/PVE/Storage/Custom/Shared
  21. install -m 0644 PVE/Storage/Custom/Shared/ZFSPluginPlus.pm ${PERL5DIR}/PVE/Storage/Custom/Shared/
  22. install -m 0644 QemuServer.patch ${PERL5DIR}/PVE/Storage/Custom/Shared/
  23. install -d ${PERL5DIR}/PVE/Storage/Custom/LunCmd
  24. install -m 0644 PVE/Storage/Custom/LunCmd/SCST.pm ${PERL5DIR}/PVE/Storage/Custom/LunCmd/
  25. distclean: clean
  26. clean:
  27. rm -rf ./build *.deb *.changes *.buildinfo
  28. .PHONY: dinstall
  29. dinstall: ${DEB}
  30. dpkg -i ${DEB}