Skip to content

Commit

Permalink
Merge pull request #66 from rmeden/master
Browse files Browse the repository at this point in the history
allow for different architectures in tarfile name
  • Loading branch information
tierpod authored Jun 17, 2024
2 parents 1922d82 + 2317ea6 commit a4cfeff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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)

0 comments on commit a4cfeff

Please sign in to comment.