]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
build: Do not opencode $(tarball).
authorAndre Noll <maan@systemlinux.org>
Sat, 19 Apr 2014 23:00:24 +0000 (23:00 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 26 Oct 2014 12:15:54 +0000 (13:15 +0100)
In Makefile.real the $tarball variable is defined as
$(tarball_pfx).tar.bz2. Use this definition instead of repeating it.

Makefile.real

index 7b7ea4191b0e867d4f969742a3191298edf031a4..6bdbc71d7cebc8554a16b786fd93dd926706aca6 100644 (file)
@@ -304,7 +304,7 @@ install: all man
        $(MKDIR_P) $(VARDIR) >/dev/null 2>&1 || true # not fatal, so don't complain
 
 $(tarball):
        $(MKDIR_P) $(VARDIR) >/dev/null 2>&1 || true # not fatal, so don't complain
 
 $(tarball):
-       rm -rf $(tarball_pfx).tar.bz2 $(tarball_pfx)
+       rm -rf $(tarball) $(tarball_pfx)
        git archive --format=tar --prefix=$(tarball_pfx)/ HEAD \
                | tar --delete $(tarball_delete) > $(tarball_pfx).tar
        $(MKDIR_P) $(tarball_pfx)
        git archive --format=tar --prefix=$(tarball_pfx)/ HEAD \
                | tar --delete $(tarball_delete) > $(tarball_pfx).tar
        $(MKDIR_P) $(tarball_pfx)
@@ -312,5 +312,5 @@ $(tarball):
        cp -r $(autocrap) $(tarball_pfx)
        tar rf $(tarball_pfx).tar $(tarball_pfx)/*
        bzip2 -9 $(tarball_pfx).tar
        cp -r $(autocrap) $(tarball_pfx)
        tar rf $(tarball_pfx).tar $(tarball_pfx)/*
        bzip2 -9 $(tarball_pfx).tar
-       ls -l $(tarball_pfx).tar.bz2
+       ls -l $(tarball)
        rm -rf $(tarball_pfx)
        rm -rf $(tarball_pfx)