From 12712abe7cde54b2b9cb40751215957a9975f08c Mon Sep 17 00:00:00 2001 From: Timo Rothenpieler Date: Tue, 27 Feb 2018 15:48:41 +0100 Subject: [PATCH] Generate native Windows paths on Windows --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index e29d5d9..a51c2c9 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,11 @@ INSTALL = install SED = sed all: +ifeq ($(OS),Windows_NT) + $(SED) 's#@@PREFIX@@#$(shell cygpath -m ${PREFIX})#' ffnvcodec.pc.in > ffnvcodec.pc +else $(SED) 's#@@PREFIX@@#$(PREFIX)#' ffnvcodec.pc.in > ffnvcodec.pc +endif install: all $(INSTALL) -m 0755 -d '$(DESTDIR)$(PREFIX)/include/ffnvcodec'