aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorChmouel Boudjnah <chmouel@mandriva.org>2000-04-05 21:38:03 +0000
committerChmouel Boudjnah <chmouel@mandriva.org>2000-04-05 21:38:03 +0000
commit5e466a4386fa94e743a4b2e6b687180bf9474290 (patch)
treef6946ad858fb4de14d9121b27633e3e4e1e87138 /Makefile
parent92b085c26647f83b6a7d27175d8ea01c57890e85 (diff)
downloadcommon-data-5e466a4386fa94e743a4b2e6b687180bf9474290.tar
common-data-5e466a4386fa94e743a4b2e6b687180bf9474290.tar.gz
common-data-5e466a4386fa94e743a4b2e6b687180bf9474290.tar.bz2
common-data-5e466a4386fa94e743a4b2e6b687180bf9474290.tar.xz
common-data-5e466a4386fa94e743a4b2e6b687180bf9474290.zip
"Seethechangelog"
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile35
1 files changed, 17 insertions, 18 deletions
diff --git a/Makefile b/Makefile
index 3d2deea..8e8ab93 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
NAME = mandrake_desk
-VERSION = 1.0.1
+VERSION = $(shell awk '/define version/ { print $$3 }' $(NAME).spec)
all:
@echo "Run make install"
@@ -7,23 +7,6 @@ all:
clean:
find . -type d -name '.xvpics'|xargs rm -rf
-dis: clean
- 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
- rm -rf $(NAME)-$(VERSION)
-
-rpm: dis ../mandrake_desk-$(VERSION).tar.bz2 $(RPM)
- cp -f ../mandrake_desk-$(VERSION).tar.bz2 $(RPM)/SOURCES
- cp -f mandrake_desk.spec $(RPM)/SPECS/
- cp -f special/mandrake-small.xpm $(RPM)/SOURCES/
- -rpm -ba mandrake_desk.spec
- rm -f ../mandrake_desk-$(VERSION).tar.bz2
-
install:
mkdir -p $(RPM_BUILD_ROOT)/usr/sbin
mkdir -p $(RPM_BUILD_ROOT)/usr/man/man8/
@@ -57,3 +40,19 @@ install:
$(RPM_BUILD_ROOT)/usr/lib/desktop-links
bzip2 -9f $(RPM_BUILD_ROOT)/usr/man/*/*
+
+dis:
+ rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar*
+ cvs commit
+ 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
+ tar cf ../$(NAME)-$(VERSION).tar $(NAME)-$(VERSION)
+ bzip2 -9f ../$(NAME)-$(VERSION).tar
+ rm -rf $(NAME)-$(VERSION)
+
+rpm: dis ../$(NAME)-$(VERSION).tar.bz2 $(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