summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 9eac07e..46b0b09 100644
--- a/Makefile
+++ b/Makefile
@@ -57,15 +57,12 @@ clean:
${RM} -r build mkinitcpio-${VERSION}
${RM} mkinitcpio-${VERSION}.tar.gz mkinitcpio.8 mkinitcpio.8.gz
-tarball: dist
-dist: clean doc
- git archive --prefix=mkinitcpio-${VERSION}/ -o mkinitcpio-${VERSION}.tar HEAD
- mkdir mkinitcpio-${VERSION}; \
- cp -t mkinitcpio-${VERSION} ${DIST_EXTRA}; \
- echo ${VERSION} > mkinitcpio-${VERSION}/VERSION; \
- tar uf mkinitcpio-${VERSION}.tar mkinitcpio-${VERSION}; \
- ${RM} -r mkinitcpio-${VERSION}
- gzip -9 mkinitcpio-${VERSION}.tar
+dist: doc
+ echo ${VERSION} > VERSION
+ git ls-files -z | xargs -0 \
+ bsdtar -czf mkinitcpio-${VERSION}.tar.gz -s ,^,mkinitcpio-${VERSION}/, VERSION ${DIST_EXTRA}
+ ${RM} VERSION
+
version:
@echo ${VERSION}