CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Removed /etc/mail/cf from the UPGRADE rules in pkgadd.conf.
[pkgutils-cross.git] / Makefile
index 8b21d2b906a78c2a1813341f6d9fbe6f127633d0..19279c6901b70d611146c9793ca1ca9dced79b5d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@
 #  pkgutils
 #
 #  Copyright (c) 2000-2005 by Per Liden <per@fukt.bth.se>
+#  Copyright (c) 2006-2007 by CRUX team (http://crux.nu)
 #
 #  This program is free software; you can redistribute it and/or modify
 #  it under the terms of the GNU General Public License as published by
@@ -24,7 +25,8 @@ BINDIR = /usr/bin
 MANDIR = /usr/man
 ETCDIR = /etc
 
-VERSION = 5.30.0
+VERSION = 5.31.0
+NAME = pkgutils-$(VERSION)
 
 CXXFLAGS += -DNDEBUG
 CXXFLAGS += -O2 -Wall -pedantic -D_GNU_SOURCE -DVERSION=\"$(VERSION)\" \
@@ -65,12 +67,11 @@ endif
 .PHONY:        install clean distclean dist
 
 dist: distclean
-       rm -rf /tmp/pkgutils-$(VERSION)
-       mkdir -p /tmp/pkgutils-$(VERSION)
-       git-log > ChangeLog
-       cp -rf . /tmp/pkgutils-$(VERSION)
-       tar -C /tmp --exclude .git -czvf ../pkgutils-$(VERSION).tar.gz pkgutils-$(VERSION)
-       rm -rf /tmp/pkgutils-$(VERSION)
+       rm -rf $(NAME) $(NAME).tar.gz
+       git archive --format=tar --prefix=$(NAME)/ HEAD | tar -x
+       git log > $(NAME)/ChangeLog
+       tar czvf $(NAME).tar.gz $(NAME)
+       rm -rf $(NAME)
 
 install: all
        install -D -m0755 pkgadd $(DESTDIR)$(BINDIR)/pkgadd