redhat-rpm-config/Makefile
2010-01-22 16:27:43 +02:00

26 lines
650 B
Makefile

NAME=redhat-rpm-config
VERSION=$(shell awk '/Version:/ { print $$2 }' $(NAME).spec)
CVSTAG = REDHAT_RPM_CONFIG_$(subst .,_,$(VERSION))
all:
clean:
rm -f *~
install:
mkdir -p $(DESTDIR)/usr/lib/rpm/redhat
cp -pr * $(DESTDIR)/usr/lib/rpm/redhat/
rm -f $(DESTDIR)/usr/lib/rpm/redhat/Makefile
rm -f $(DESTDIR)/usr/lib/rpm/redhat/redhat-rpm-config.spec
tag-archive:
git tag -a $(CVSTAG)
create-archive:
git archive --format=tar --prefix=redhat-rpm-config-$(VERSION)/ HEAD | bzip2 -9v > redhat-rpm-config-$(VERSION).tar.bz2
@echo "The final archive is in $(NAME)-$(VERSION).tar.bz2"
archive: tag-archive create-archive
dist: create-archive