aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2000-02-28 14:43:07 +0000
committerFrederic Lepied <flepied@mandriva.com>2000-02-28 14:43:07 +0000
commitd581e8b21d3e47598bd3f8898cf1ebb93fff38bf (patch)
tree27e5a1a91d617319f20d0ecc1825226b47be07c3
parent0e49ccfecaa1940ace7377a23ffe2a9659f81933 (diff)
downloadspec-helper-d581e8b21d3e47598bd3f8898cf1ebb93fff38bf.tar
spec-helper-d581e8b21d3e47598bd3f8898cf1ebb93fff38bf.tar.gz
spec-helper-d581e8b21d3e47598bd3f8898cf1ebb93fff38bf.tar.bz2
spec-helper-d581e8b21d3e47598bd3f8898cf1ebb93fff38bf.tar.xz
spec-helper-d581e8b21d3e47598bd3f8898cf1ebb93fff38bf.zip
* clean dis rules.
-rw-r--r--Makefile18
1 files changed, 8 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index c92de63..6bed2fe 100644
--- a/Makefile
+++ b/Makefile
@@ -7,9 +7,9 @@
# Created On : Fri Feb 18 08:11:21 2000
#---------------------------------------------------------------
-VERSION=0.1
+VERSION=0.2
FILES= spec-helper clean_files compress_files strip_files
-DISTFILES= Makefile $(FILES)
+DISTFILES= Makefile ChangeLog Howto-spec-helper $(FILES)
NAME=spec-helper
DIST=$(NAME)-$(VERSION)
@@ -32,18 +32,16 @@ install:
dis:
rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar*
mkdir -p $(NAME)-$(VERSION)
- find . -not -name "$(NAME)-$(VERSION)"|cpio -pd $(NAME)-$(VERSION)/
- find $(NAME)-$(VERSION) -type d -name CVS -o -name .cvsignore -o -name unused |xargs rm -rf
- perl -p -i -e 's|^%define version.*|%define version $(VERSION)|' $(NAME).spec
- tar cf ../$(NAME)-$(VERSION).tar $(NAME)-$(VERSION)
- bzip2 -9f ../$(NAME)-$(VERSION).tar
+ ln $(DISTFILES) $(NAME)-$(VERSION)
+ tar cvf ../$(NAME)-$(VERSION).tar $(NAME)-$(VERSION)
+ bzip2 -9vf ../$(NAME)-$(VERSION).tar
rm -rf $(NAME)-$(VERSION)
-rpm: dis ../$(NAME)-$(VERSION).tar.bz2 $(RPM)
+rpm: ../$(NAME)-$(VERSION).tar.bz2
+ test -d $(RPM)/SOURCES && test -d $(RPM)/
cp -f ../$(NAME)-$(VERSION).tar.bz2 $(RPM)/SOURCES
- cp -f $(NAME).spec $(RPM)/SPECS/
-rpm -ba --clean --rmsource $(NAME).spec
- rm -f ../$(NAME)-$(VERSION).tar.bz2
+ rm -f $(NAME)-$(VERSION).tar.bz2
# Local variables:
# mode: makefile