1
0
mirror of https://github.com/pfusik/xasm.git synced 2024-12-22 00:29:15 +00:00

Adapt srcdist to new tools.

This commit is contained in:
Piotr Fusik 2019-10-29 20:16:03 +01:00
parent 2f8e97499d
commit 420a83a897

View File

@ -4,7 +4,7 @@ prefix = /usr/local
bindir = $(prefix)/bin bindir = $(prefix)/bin
mandir = $(prefix)/share/man/man1 mandir = $(prefix)/share/man/man1
SEVENZIP = 7z a -mx=9 -bd SEVENZIP = 7z a -mx=9 -bd -bso0
all: xasm xasm.html all: xasm xasm.html
@ -33,10 +33,10 @@ uninstall-scite:
dist: srcdist ../xasm-$(VERSION)-windows.zip dist: srcdist ../xasm-$(VERSION)-windows.zip
srcdist: MANIFEST srcdist: MANIFEST
$(RM) ../xasm-$(VERSION).tar.gz && tar -c --numeric-owner --owner=0 --group=0 --mode=644 -T MANIFEST --transform=s,,xasm-$(VERSION)/, | $(SEVENZIP) -tgzip -si ../xasm-$(VERSION).tar.gz $(RM) ../xasm-$(VERSION).tar.gz && /usr/bin/tar -c --numeric-owner --owner=0 --group=0 --mode=644 -T MANIFEST --transform=s,,xasm-$(VERSION)/, | $(SEVENZIP) -tgzip -si ../xasm-$(VERSION).tar.gz
MANIFEST: MANIFEST:
if test -e .git; then (git ls-files | grep -vF .gitignore && echo MANIFEST) | sort >$@ ; fi if test -e .git; then (git ls-files | grep -vF .gitignore && echo MANIFEST) | sort | dos2unix >$@ ; fi
../xasm-$(VERSION)-windows.zip: xasm xasm.html xasm.properties ../xasm-$(VERSION)-windows.zip: xasm xasm.html xasm.properties
$(RM) $@ && $(SEVENZIP) -tzip $@ xasm.exe xasm.html xasm.properties $(RM) $@ && $(SEVENZIP) -tzip $@ xasm.exe xasm.html xasm.properties