Makefile
raw| 1 | DIST ?= "el9" |
| 2 | TAG := $(shell git describe --tags --abbrev=0) |
| 3 | VERSION := $(shell echo $(TAG) | sed 's/^v//') |
| 4 | |
| 5 | |
| 6 | dist: |
| 7 | git archive --format=tar.gz --prefix=ceph-iscsi-$(VERSION)/ HEAD > ceph-iscsi-$(VERSION).tar.gz |
| 8 | |
| 9 | srpm: dist |
| 10 | rpmbuild -bs ceph-iscsi.spec \ |
| 11 | --define "_topdir ." \ |
| 12 | --define "_sourcedir ." \ |
| 13 | --define "_srcrpmdir ." \ |
| 14 | --define "dist .$(DIST)" |
| 15 | |
| 16 | .PHONY: dist srpm |