From 2317ea6b6410b0598ef48602b94f9806b5f879da Mon Sep 17 00:00:00 2001 From: Robert Eden Date: Mon, 3 Jun 2024 11:01:18 -0500 Subject: [PATCH] allow for different architectures in tarfile name --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e6087c9..b34d9ef 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ NAME := dmarc-report-converter DESTDIR := /opt INSTALLDIR := $(DESTDIR)/dmarc-report-converter +ARCH := $(shell arch) ifeq ($(GITHUB_REF),) GIT_VER := $(shell git describe --abbrev=7 --always --tags)-$(shell git rev-parse --abbrev-ref HEAD)-$(shell date +%Y%m%d) @@ -43,4 +44,4 @@ $(INSTALLDIR) dist tmp: .PHONY: release release: clean dist make DESTDIR=./tmp install - tar -cvzf dist/$(NAME)_$(GIT_VER)_x86-64.tar.gz --owner=0 --group=0 -C ./tmp $(NAME) + tar -cvzf dist/$(NAME)_$(GIT_VER)_$(ARCH).tar.gz --owner=0 --group=0 -C ./tmp $(NAME)