From 2a6de7550f264c3006c0016b08b34cbb24013e64 Mon Sep 17 00:00:00 2001 From: Colin Dean Date: Sun, 8 Apr 2018 13:32:07 -0400 Subject: [PATCH] Adds OS and architecture to archive name --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5a4630b..86e1462 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,13 @@ CFLAGS=-O3 -Wall -Wuninitialized \ -DNODEBUG $(INCLUDE_PATHS) VERSION=$(shell git describe) -ARCHIVE_PATH=optar-$(VERSION).tar.gz +ifdef TRAVIS_OS_NAME + OS=$(TRAVIS_OS_NAME) +else + OS=$(shell uname -s) +endif +ARCH=$(shell uname -m) +ARCHIVE_PATH=optar-$(VERSION)-$(OS)-$(ARCH).tar.gz BINARIES=optar unoptar EXECUTABLES=$(BINARIES) pgm2ps