summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2006-07-12 18:21:18 +0000
committerOlivier Blin <oblin@mandriva.com>2006-07-12 18:21:18 +0000
commit1516c813ffe15c257fe3d013d380c268b458a5ba (patch)
tree071006ae03c14bf28f0b2e33a308c54b94758669 /Makefile
parent359d12ed69afeaf6dcb945dbb248ad43a153e82a (diff)
downloadldetect-1516c813ffe15c257fe3d013d380c268b458a5ba.tar
ldetect-1516c813ffe15c257fe3d013d380c268b458a5ba.tar.gz
ldetect-1516c813ffe15c257fe3d013d380c268b458a5ba.tar.bz2
ldetect-1516c813ffe15c257fe3d013d380c268b458a5ba.tar.xz
ldetect-1516c813ffe15c257fe3d013d380c268b458a5ba.zip
use dis target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 14 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 8f7850d..3fa710a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,8 @@
+NAME = ldetect
LIB_MAJOR = 0.6
LIB_MINOR = 0
+VERSION=$(LIB_MAJOR).$(LIB_MINOR)
-project = ldetect
prefix = /usr
bindir = $(prefix)/bin
libdir = $(prefix)/lib
@@ -49,12 +50,19 @@ install: build
cp -a $(libraries) $(libdir)
install libldetect.h $(includedir)
-rpm: srpm
- rpm -bb --clean --rmsource --rmspec $(project).spec
+dis ../$(NAME)-$(VERSION).tar.bz2: clean
+ rm -rf $(NAME)-$(VERSION)
+ mkdir -p $(NAME)-$(VERSION)
+ find -not -name $(NAME)-$(VERSION) | cpio -pd $(NAME)-$(VERSION)/
+ find $(NAME)-$(VERSION) -type d -name .svn | xargs rm -rf
+ tar cfj ../$(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION)
+ rm -rf $(NAME)-$(VERSION)
-srpm: clean $(RPM)
- (cd .. ; tar cfj $(RPM)/SOURCES/$(project).tar.bz2 $(project))
- rpm -bs $(RPM)/SPECS/$(project).spec
+rpm: dis $(RPM)
+ rpm -ta ../$(NAME)-$(VERSION).tar.bz2
+
+srpm: dis $(RPM)
+ rpm -ts ../$(NAME)-$(VERSION).tar.bz2
log:
cvs2cl -U ../common/username -I ChangeLog -W 400 --accum