OSDN Git Service

Added check for AMTAR
authorJaroslav Kysela <perex@perex.cz>
Wed, 23 Oct 2002 13:24:07 +0000 (13:24 +0000)
committerJaroslav Kysela <perex@perex.cz>
Wed, 23 Oct 2002 13:24:07 +0000 (13:24 +0000)
Makefile.am

index cf4bffb..21b14cc 100644 (file)
@@ -8,7 +8,11 @@ rpm: dist
 
 dist-hook:
        -chmod -R a+r $(distdir)
-       $(TAR) cvf $(distdir).tar.bz2 --bzip2 $(distdir)
+       @if ! test -z "$(AMTAR)"; then \
+               $(AMTAR) cvf $(distdir).tar.bz2 --bzip2 $(distdir); \
+       else \
+               $(TAR) cvf $(distdir).tar.bz2 --bzip2 $(distdir); \
+       fi
 
 doc-dummy: