aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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/