summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2009-08-27 06:49:06 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-09-01 19:06:32 +0200
commit87ced1cd3e9ac141096439732ebeef6204cf664e (patch)
tree1b4f94c3bc6b0e197f0e76b000aa14bc3cd797a2 /Makefile
parentf5ad751ef54a96c36777f046da6ce449737feb6b (diff)
downloadmkinitcpio-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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 25 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6186961..d146821 100644
--- a/Makefile
+++ b/Makefile
@@ -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}