Commit 69ad64a1 authored by Lubomir Rintel's avatar Lubomir Rintel 🥕

Relocate the paths autodetected with pkg-config under PREFIX

The udev pkg-config file is not happy about relocating anything. Thus
for an umprivileged install one still has to do

  make install UDEV_DIR="" PREFIX=...
parent c570acd7
......@@ -15,10 +15,10 @@ DIST_DIR = $(MINIPRO)-$(VERSION)
BIN_INSTDIR=$(DESTDIR)$(PREFIX)/bin
MAN_INSTDIR=$(DESTDIR)$(PREFIX)/share/man/man1
UDEV_DIR=$(shell pkg-config --silence-errors --variable=udevdir udev)
UDEV_DIR=$(shell pkg-config --define-variable=prefix=$(PREFIX) --silence-errors --variable=udevdir udev)
UDEV_RULES_INSTDIR=$(DESTDIR)$(UDEV_DIR)/rules.d
COMPLETIONS_DIR=$(shell pkg-config --silence-errors --variable=completionsdir bash-completion)
COMPLETIONS_DIR=$(shell pkg-config --define-variable=prefix=$(PREFIX) --silence-errors --variable=completionsdir bash-completion)
COMPLETIONS_INSTDIR=$(DESTDIR)$(COMPLETIONS_DIR)
libusb_CFLAGS = $(shell pkg-config --cflags libusb-1.0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment