2
0

include.am 957 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # vim:ft=automake
  2. rpm-build: rpm/spec dist
  3. @rm -f *.rpm
  4. @rm -f ~/rpmbuild/RPMS/x86_64/$(PACKAGE)-$(VERSION)*.rpm
  5. @rm -f ~/rpmbuild/SRPMS/$(PACKAGE)-$(VERSION)*.rpm
  6. @mkdir -p ~/rpmbuild/BUILD/
  7. @mkdir -p ~/rpmbuild/RPMS/i386/
  8. @mkdir -p ~/rpmbuild/RPMS/i686/
  9. @mkdir -p ~/rpmbuild/RPMS/noarch/
  10. @mkdir -p ~/rpmbuild/RPMS/x86_64/
  11. @mkdir -p ~/rpmbuild/SOURCES/
  12. @mkdir -p ~/rpmbuild/SPECS/
  13. @mkdir -p ~/rpmbuild/SRPMS/
  14. @cp $(PACKAGE)-$(VERSION).tar.gz ~/rpmbuild/SOURCES/
  15. @rpmbuild -ba --clean rpm/spec
  16. @cp ~/rpmbuild/RPMS/x86_64/$(PACKAGE)-$(VERSION)*.rpm .
  17. @cp ~/rpmbuild/RPMS/x86_64/$(PACKAGE)-devel-$(VERSION)*.rpm .
  18. @cp ~/rpmbuild/RPMS/x86_64/$(PACKAGE)-debuginfo-$(VERSION)*.rpm .
  19. @cp ~/rpmbuild/SRPMS/$(PACKAGE)-$(VERSION)*.rpm .
  20. rpm-sign: rpm-build
  21. @rpm --addsign *.rpm
  22. @rpm --checksig *.rpm
  23. clean-rpm:
  24. @rm -f *.tar.gz
  25. @rm -f *.src.rpm
  26. @rm -f *.rpm
  27. rpm: rpm-build
  28. release: rpm-sign
  29. auto-rpmbuild:
  30. @auto-br-rpmbuild -ba rpm/spec