diff options
author | Roy Marples <roy@marples.name> | 2007-11-19 20:27:36 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-11-19 20:27:36 +0000 |
commit | 46f25b2a72f05b314b523508a22b66d564a0d0c9 (patch) | |
tree | 19500171711690613c0c3d8d982da0c5cf6a4798 /Makefile | |
parent | 008d801a505a18fd8dc935e7d535d4f16795da8f (diff) |
No easy way of getting git status, so remove fancy checks.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 31 |
1 files changed, 11 insertions, 20 deletions
@@ -16,25 +16,16 @@ install:: ln -snf ../../$(RC_LIB)/sh/net.sh $(DESTDIR)/etc/init.d/$(NET_LO) || exit $$? ln -snf ../../$(RC_LIB)/sh/functions.sh $(DESTDIR)/etc/init.d || exit $$? -diststatus: - if test -d .svn ; then \ - svnfiles=`svn status 2>&1 | egrep -v '^(U|P)'` ; \ - if test "x$$svnfiles" != "x" ; then \ - echo "Refusing to package tarball until svn is in sync:" ; \ - echo "$$svnfiles" ; \ - echo "make distforce to force packaging" ; \ - exit 1 ; \ - fi \ - fi - -distit: - rm -rf /tmp/$(PKG) - svn export . /tmp/$(PKG) - $(MAKE) -C /tmp/$(PKG) clean - tar -C /tmp -cvjpf /tmp/$(PKG).tar.bz2 $(PKG) - rm -rf /tmp/$(PKG) - ls -l /tmp/$(PKG).tar.bz2 - -dist: diststatus distit +clean:: + rm -f *.bz2 + +dist: + $(INSTALL) -d /tmp/$(PKG) + cp -RPp . /tmp/$(PKG) + (cd /tmp/$(PKG); $(MAKE) clean) + rm -rf /tmp/$(PKG)/*.bz2 /tmp/$(PKG)/.git /tmp/$(PKG)/test + tar cvjpf $(PKG).tar.bz2 -C /tmp $(PKG) + rm -rf /tmp/$(PKG) + ls -l $(PKG).tar.bz2 # vim: set ts=4 : |