diff options
author | Loui Chang <louipc.ist@gmail.com> | 2009-08-27 06:49:06 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-09-01 19:06:32 +0200 |
commit | 87ced1cd3e9ac141096439732ebeef6204cf664e (patch) | |
tree | 1b4f94c3bc6b0e197f0e76b000aa14bc3cd797a2 | |
parent | f5ad751ef54a96c36777f046da6ce449737feb6b (diff) | |
download | mkinitcpio-87ced1cd3e9ac141096439732ebeef6204cf664e.tar.gz mkinitcpio-87ced1cd3e9ac141096439732ebeef6204cf664e.tar.xz |
Makefile: Add a rule to generate a source tarball.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rw-r--r-- | Makefile | 26 |
1 files changed, 25 insertions, 1 deletions
@@ -1,5 +1,7 @@ # Makefile for mkinitcpio +VERSION = 0.6.0a + all: doc install: all @@ -38,7 +40,29 @@ mkinitcpio.5.gz: mkinitcpio.5.txt gzip -c --best mkinitcpio.5 > mkinitcpio.5.gz clean: + rm -rf build + rm -f mkinitcpio-${VERSION}.tar.gz rm -f mkinitcpio.5 - rm -f mkinitcpio.5.gz rm -f mkinitcpio.5.xml + rm -f mkinitcpio.5.gz + +TARBALL_FILES = \ + Makefile \ + LICENSE \ + README \ + hooks \ + functions \ + init \ + init_functions \ + install \ + mkinitcpio \ + mkinitcpio.conf \ + mkinitcpio.d \ + mkinitcpio.5.txt \ + mkinitcpio.5.gz + +tarball: mkinitcpio.5.gz + mkdir -p build/mkinitcpio-${VERSION} + cp -a --backup=none ${TARBALL_FILES} build/mkinitcpio-${VERSION} + tar cvvzf mkinitcpio-${VERSION}.tar.gz -C build mkinitcpio-${VERSION} |