Makefile: fix "make dist" and "make tar"

These aren't used to actually make a distribution, but they are useful
for testing.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2024-04-12 14:21:51 -07:00
parent ff78ddc6af
commit 0553c6f306

View File

@ -462,15 +462,14 @@ everything: always_everything
install_everything: everything install install_doc
dist:
$(MAKE) distclean
$(MAKE) alldeps
$(MAKE) perlreq manpages spec $(MANPAGES)
$(MAKE) distclean
./autogen.sh
tar: dist
tar -cv --exclude CVS -C .. -f - | \
$(XZ) -9e > \
../nasm-`cat version`-`date +%Y%m%d`.tar.xz `basename \`pwd\``
tar -cv --exclude CVS --exclude .git -C .. -f - `basename \`pwd\`` | \
$(XZ) -9e > ../nasm-`cat version`-`date +%Y%m%d`.tar.xz
spec: nasm.spec