diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-07-10 18:27:48 +0200 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2011-07-10 18:35:11 +0200 |
commit | c9c9cb509f3718e6581f8789c2ae6efe57b189b1 (patch) | |
tree | 3e70b81532d30a07104f470bf3fca083a6322289 | |
parent | 2c6650d8ad57f8abe8a0b7e3d1c2444143c2fb1f (diff) | |
download | mkinitcpio-master.tar.gz mkinitcpio-master.tar.xz |
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | Makefile | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -13,8 +13,7 @@ DIRS = \ /usr/share/man/man5 DIST_EXTRA = \ - mkinitcpio.5 \ - VERSION + mkinitcpio.5 all: doc @@ -47,9 +46,6 @@ install: all install -m644 mkinitcpio.5 ${DESTDIR}/usr/share/man/man5/mkinitcpio.5 install -m644 bash-completion ${DESTDIR}/etc/bash_completion.d/mkinitcpio -write-ver: - git describe > VERSION - doc: mkinitcpio.5 mkinitcpio.5: mkinitcpio.5.txt Makefile a2x -d manpage \ @@ -60,16 +56,16 @@ mkinitcpio.5: mkinitcpio.5.txt Makefile clean: ${RM} -r build mkinitcpio-${VERSION} - ${RM} mkinitcpio-${VERSION}.tar.gz mkinitcpio.5 mkinitcpio.5.gz VERSION + ${RM} mkinitcpio-${VERSION}.tar.gz mkinitcpio.5 mkinitcpio.5.gz tarball: dist -dist: clean write-ver doc +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 - ${RM} VERSION -.PHONY: clean dist install tarball write-ver +.PHONY: clean dist install tarball |