aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorChmouel Boudjnah <chmouel@mandriva.org>2000-04-05 16:38:07 +0000
committerChmouel Boudjnah <chmouel@mandriva.org>2000-04-05 16:38:07 +0000
commitae6d163f7b13fc05b61ab99199eabf6bafe88c4c (patch)
tree0ac40076ee650a7271f0fc84a46664fcaebbaa40 /Makefile
parentd42a67c192d2c69561efec5cc1a33c4ce1db1ccd (diff)
downloadnumlock-ae6d163f7b13fc05b61ab99199eabf6bafe88c4c.tar
numlock-ae6d163f7b13fc05b61ab99199eabf6bafe88c4c.tar.gz
numlock-ae6d163f7b13fc05b61ab99199eabf6bafe88c4c.tar.bz2
numlock-ae6d163f7b13fc05b61ab99199eabf6bafe88c4c.tar.xz
numlock-ae6d163f7b13fc05b61ab99199eabf6bafe88c4c.zip
"Seethechangelog"
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 19 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4e67373..a919495 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,6 @@
+NAME= numlock
+VERSION = $(shell awk '/define version/ { print $$3 }' $(NAME).spec)
+
TOP=
CFLAGS=-g -O2 -Wall
CC=gcc
@@ -17,4 +20,19 @@ install: all
install -m755 enable_X11_numlock $(TOP)/usr/X11R6/bin
install -m755 numlock $(TOP)/etc/rc.d/init.d/
- install -m755 numlock.sh $(TOP)/etc/profile.d/ \ No newline at end of file
+ install -m755 numlock.sh $(TOP)/etc/profile.d/
+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