Makefile 1008 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. PACKAGE=pve-iscsi-zfs-scst
  2. PKGVER=0.0.3
  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. install: PVE
  17. install -d ${PERL5DIR}/PVE/Storage/Custom
  18. install -m 0644 PVE/Storage/Custom/scstZFSPlugin.pm ${PERL5DIR}/PVE/Storage/Custom/
  19. install -d ${PERL5DIR}/PVE/Storage/Custom/Shared
  20. install -m 0644 PVE/Storage/Custom/Shared/ZFSPluginPlus.pm ${PERL5DIR}/PVE/Storage/Custom/Shared/
  21. install -m 0644 QemuServer.patch ${PERL5DIR}/PVE/Storage/Custom/Shared/
  22. install -d ${PERL5DIR}/PVE/Storage/Custom/LunCmd
  23. install -m 0644 PVE/Storage/Custom/LunCmd/SCST.pm ${PERL5DIR}/PVE/Storage/Custom/LunCmd/
  24. .PHONY: upload
  25. upload: ${DEB}
  26. tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch
  27. distclean: clean
  28. clean:
  29. rm -rf ./build *.deb *.changes *.buildinfo
  30. .PHONY: dinstall
  31. dinstall: ${DEB}
  32. dpkg -i ${DEB}