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

Revert "Using $PREFIX instead of the $DESTDIR confusion."

This is mostly wrong. DESTDIR is conventionally used to override the
install root when doing an out-of-tree install (such as on a package
build), while PREFIX denotes the actual install tree (e.g. /usr vs.
/usr/local).

Also the commit changed the udev rules dir to /etc, which is meant for
*user* configuration, not configuration shipped with a package.

A commit that adds PREFIX properly will follow.

This reverts commit 455dd5b5.
parent 484abde7
......@@ -9,13 +9,11 @@ TESTS=$(wildcard tests/test_*.c);
OBJCOPY=objcopy
VERSION=0.1
PREFIX = /usr/local
DIST_DIR = $(MINIPRO)-$(VERSION)
BIN_DIR = $(PREFIX)/bin/
UDEV_RULES_DIR = /etc/udev/rules.d/
MAN_DIR = $(PREFIX)/share/man/man1/
COMPLETIONS_DIR = /etc/bash_completion.d/
BIN_DIR=$(DESTDIR)/usr/bin/
UDEV_RULES_DIR=$(DESTDIR)/usr/lib/udev/rules.d/
MAN_DIR=$(DESTDIR)/usr/share/man/man1/
COMPLETIONS_DIR=$(DESTDIR)/etc/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