2002-12-04 04:57:53 +00:00
|
|
|
NAME=redhat-rpm-config
|
2010-01-26 13:51:57 +00:00
|
|
|
VERSION=9.1.0
|
2002-12-04 04:57:53 +00:00
|
|
|
|
|
|
|
CVSTAG = REDHAT_RPM_CONFIG_$(subst .,_,$(VERSION))
|
|
|
|
|
|
|
|
all:
|
|
|
|
|
2007-06-19 17:54:21 +00:00
|
|
|
clean:
|
|
|
|
rm -f *~
|
|
|
|
|
|
|
|
install:
|
|
|
|
mkdir -p $(DESTDIR)/usr/lib/rpm/redhat
|
|
|
|
cp -pr * $(DESTDIR)/usr/lib/rpm/redhat/
|
2011-05-27 16:30:20 +00:00
|
|
|
mkdir -p $(DESTDIR)/etc/rpm
|
|
|
|
cp -pr macros.* $(DESTDIR)/etc/rpm/
|
2010-02-02 10:02:10 +00:00
|
|
|
rm -f $(DESTDIR)/usr/lib/rpm/redhat/{Makefile,ChangeLog}
|
2011-05-27 16:30:20 +00:00
|
|
|
rm -f $(DESTDIR)/usr/lib/rpm/redhat/macros.*
|
2007-06-19 17:54:21 +00:00
|
|
|
|
2002-12-04 04:57:53 +00:00
|
|
|
tag-archive:
|
2010-02-02 09:24:04 +00:00
|
|
|
@git tag -a $(CVSTAG) -m "$(NAME)-$(VERSION) release"
|
2002-12-04 04:57:53 +00:00
|
|
|
|
|
|
|
create-archive:
|
2010-02-02 09:24:04 +00:00
|
|
|
@git archive --format=tar --prefix=$(NAME)-$(VERSION)/ HEAD | tar xf -
|
|
|
|
@git log > $(NAME)-$(VERSION)/ChangeLog
|
|
|
|
@tar cjf $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION)
|
|
|
|
@rm -rf $(NAME)-$(VERSION)
|
|
|
|
@echo "Created $(NAME)-$(VERSION).tar.bz2"
|
2002-12-04 04:57:53 +00:00
|
|
|
|
|
|
|
archive: tag-archive create-archive
|