prefix ?= /usr/
-libdir ?= $(prefix)/lib64/
+exec_prefix ?= $(prefix)
+libdir ?= $(exec_prefix)/lib64/
datadir ?= $(prefix)/share/
mandir ?= $(datadir)/man/
includedir ?= $(prefix)/include/
-bindir ?= $(prefix)/bin/
+bindir ?= $(exec_prefix)/bin/
PCDIR ?= $(libdir)/pkgconfig/
DESTDIR ?=
sed \
-e "s,@@VERSION@@,$(VERSION),g" \
-e "s,@@LIBDIR@@,$(libdir),g" \
+ -e "s,@@PREFIX@@,$(prefix),g" \
+ -e "s,@@EXEC_PREFIX@@,$(exec_prefix),g" \
+ -e "s,@@INCLUDEDIR@@,$(includedir),g" \
$(1) > $(2)
endef
-prefix=/usr
-exec_prefix=/usr
+prefix=@@PREFIX@@
+exec_prefix=@@EXEC_PREFIX@@
libdir=@@LIBDIR@@
-includedir=/usr/include
+includedir=@@INCLUDEDIR@@
Name: efiboot
Description: UEFI Boot variable support
-prefix=/usr
-exec_prefix=/usr
+prefix=@@PREFIX@@
+exec_prefix=@@EXEC_PREFIX@@
libdir=@@LIBDIR@@
-includedir=/usr/include
+includedir=@@INCLUDEDIR@@
Name: efivar
Description: UEFI Variable Management