1b6281ab55
instead of doing everything manually
28 lines
700 B
Makefile
28 lines
700 B
Makefile
NAME=redhat-rpm-config
|
|
VERSION=$(shell awk '/Version:/ { print $$2 }' $(NAME).spec)
|
|
|
|
CVSROOT = $(shell cat CVS/Root 2>/dev/null || :)
|
|
|
|
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
|