From 3064ad6dbc066d34901cd7207efd1cb9492eff01 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 8 Jan 2021 03:12:33 -0700 Subject: [PATCH] build: use head -n1 when reading VERSION --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6e389ef..901bb83 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ endif LIBUCONTEXT_C_SRC = $(wildcard arch/${ARCH}/*.c) LIBUCONTEXT_S_SRC = $(wildcard arch/${ARCH}/*.S) -LIBUCONTEXT_VERSION := $(shell head VERSION) +LIBUCONTEXT_VERSION := $(shell head -n 1 VERSION) LIBUCONTEXT_OBJ = ${LIBUCONTEXT_C_SRC:.c=.o} ${LIBUCONTEXT_S_SRC:.S=.o} LIBUCONTEXT_SOVERSION = 0 LIBUCONTEXT_NAME = libucontext.so