Commit bc31cbc0 authored by Lubomir Rintel's avatar Lubomir Rintel 🥕

Use $PREFIX to override install location

Based on 455dd5b5 by David Griffith <dave@661.org>.
parent 38f5c608
......@@ -9,11 +9,13 @@ TESTS=$(wildcard tests/test_*.c);
OBJCOPY=objcopy
VERSION=0.1
PREFIX=/usr/local
DIST_DIR = $(MINIPRO)-$(VERSION)
BIN_DIR=$(DESTDIR)/usr/bin/
UDEV_RULES_DIR=$(DESTDIR)/usr/lib/udev/rules.d/
MAN_DIR=$(DESTDIR)/usr/share/man/man1/
COMPLETIONS_DIR=$(DESTDIR)/usr/share/bash_completion.d/
BIN_DIR=$(DESTDIR)$(PREFIX)/bin/
UDEV_RULES_DIR=$(DESTDIR)$(PREFIX)/lib/udev/rules.d/
MAN_DIR=$(DESTDIR)$(PREFIX)/share/man/man1/
COMPLETIONS_DIR=$(DESTDIR)$(PREFIX)/share/bash_completion.d/
libusb_CFLAGS = `pkg-config --cflags libusb-1.0`
libusb_LIBS = `pkg-config --libs 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