Skip to content

Commit

Permalink
Generate native Windows paths on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
BtbN committed Feb 27, 2018
1 parent 21e466b commit 12712ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 12712ab

Please sign in to comment.