[nasm:nasm-2.16.xx] Makefile: fix "make dist" and "make tar"

nasm-bot for H. Peter Anvin hpa at zytor.com
Fri Apr 12 14:51:06 PDT 2024


Commit-ID:  0553c6f30601d3db636fa368fc0525a05332e42e
Gitweb:     http://repo.or.cz/w/nasm.git?a=commitdiff;h=0553c6f30601d3db636fa368fc0525a05332e42e
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Fri, 12 Apr 2024 14:21:51 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Fri, 12 Apr 2024 14:21:51 -0700

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 at zytor.com>


---
 Makefile.in | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 85af2ece..ff584251 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -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
 


More information about the Nasm-commits mailing list