Fix Makefile dist file generation

This commit is contained in:
Maxime Coste 2024-03-22 17:25:30 +11:00
parent ca7471c25d
commit 794e7ce51c

View File

@ -7,9 +7,9 @@ debug = no
static = no static = no
gzip_man = yes gzip_man = yes
# to get format compatible with GitHub archive use "gzip -S .gz" here # to get format compatible with GitHub archive use "gzip -S .gz" here
compress_bin = bzip compress_bin = bzip2
compress-suffix-bzip = bz2 compress-suffix-bzip2 = bz2
compress-suffix-zstd = zst compress-suffix-zstd = zst
CPPFLAGS-debug-yes = -DKAK_DEBUG CPPFLAGS-debug-yes = -DKAK_DEBUG
@ -141,10 +141,10 @@ tags:
clean: clean:
rm -f $(objects) $(deps) src/.version* rm -f $(objects) $(deps) src/.version*
dist: kakoune-$(version).tar.zst dist: kakoune-$(version).tar.$(compress-suffix-$(compress_bin))
kakoune-$(version).tar.$(compress-suffix-$(compress_bin)): kakoune-$(version).tar kakoune-$(version).tar.$(compress-suffix-$(compress_bin)): kakoune-$(version).tar
$(compress_bin) -f $< -o $@ $(compress_bin) -f $<
kakoune-$(version).tar: kakoune-$(version).tar:
@if ! [ -d .git ]; then echo "make dist can only run from a git repo"; false; fi @if ! [ -d .git ]; then echo "make dist can only run from a git repo"; false; fi