aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2003-12-18 16:00:32 +0000
committerDaouda Lo <daouda@mandriva.com>2003-12-18 16:00:32 +0000
commit86292cb09e574a23a6849637980669f85cc10a89 (patch)
tree3b0d827cd6612f920872f6b3c642e67fc6327c21 /Makefile
parent47fb49d09db14d90407d4a6e2e8b5609aaab90dd (diff)
downloaduserdrake-86292cb09e574a23a6849637980669f85cc10a89.tar
userdrake-86292cb09e574a23a6849637980669f85cc10a89.tar.gz
userdrake-86292cb09e574a23a6849637980669f85cc10a89.tar.bz2
userdrake-86292cb09e574a23a6849637980669f85cc10a89.tar.xz
userdrake-86292cb09e574a23a6849637980669f85cc10a89.zip
- some build add-ons
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d965079..9851b94 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,4 @@
+
VERSION = $(shell awk '/define version/ { print $$3 }' $(NAME).spec)
NAME = userdrake
BINNAME = userdrake
@@ -38,6 +39,16 @@ install: all
install -m644 icons/*selec*.png $(DATADIR)/$(NAME)/pixmaps
for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done
+tar:
+ mkdir ../u;
+ cd ../u; \
+ cp -a ../$(NAME)2 .; \
+ mv $(NAME)2 $(NAME)-$(VERSION); \
+ find -name "CVS" | xargs rm -rf; \
+ tar jcvf ../userdrake-$(VERSION).tar.bz2 userdrake-$(VERSION); \
+ cd ..; \
+ rm -rf u
+
dis: clean
rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar*
mkdir -p $(NAME)-$(VERSION)
@@ -47,6 +58,11 @@ dis: clean
bzip2 -9f ../$(NAME)-$(VERSION).tar
rm -rf $(NAME)-$(VERSION)
+no:
+ scp ../$(NAME)-$(VERSION).tar.bz2 no:rpm/SOURCES/$(NAME)-$(VERSION).tar.bz2
+ rm -f scp ../$(NAME)-$(VERSION).tar.bz2
+ scp $(NAME).spec no:rpm/SPECS
+
srpm: dis ../$(NAME)-$(VERSION).tar.bz2 $(RPM)
cp -f ../$(NAME)-$(VERSION).tar.bz2 $(RPM)/SOURCES
cp -f $(NAME).spec $(RPM)/SPECS/