This adds a DESTDIR variable to the makefile system so when generating
rpms or deb packages package maintainers can more easily install pvfs
in their distributions.

diff --git a/Makefile.in b/Makefile.in
index a3f1670..b6efe4f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -51,11 +51,12 @@
# Generic makefile setup

# define a few generic variables that we need to use
+DESTDIR =
srcdir = @srcdir@
-prefix = @prefix@
-datarootdir = @datarootdir@
-mandir = @mandir@
-exec_prefix = @exec_prefix@
+prefix = $(DESTDIR)@prefix@
+datarootdir = $(DESTDIR)@datarootdir@
+mandir = $(DESTDIR)@mandir@
+exec_prefix = $(DESTDIR)@exec_prefix@

VPATH = $(srcdir)
SHELL = @SHELL@
@@ -879,7 +880,7 @@ ifeq ($(NUM_UTS_LINES),1)
else
    KERNEL_VERS := $(shell uname -r)
endif
-KMOD_DIR ?= $(kmod_prefix)/lib/modules/$(KERNEL_VERS)/kernel/fs/pvfs2
+KMOD_DIR ?= $(DESTDIR)/lib/modules/$(KERNEL_VERS)/kernel/fs/pvfs2

.PHONY: just_kmod_install
just_kmod_install: just_kmod
@@ -900,7 +901,7 @@ ifeq ($(NUM_UTS_LINES),1)
else
    KERNEL_VERS := $(shell uname -r)
endif
-KMOD_DIR := $(kmod_prefix)/lib/modules/$(KERNEL_VERS)/kernel/fs/pvfs2
+KMOD_DIR := $(DESTDIR)/lib/modules/$(KERNEL_VERS)/kernel/fs/pvfs2

.PHONY: just_kmod24_install
just_kmod24_install: just_kmod24
_______________________________________________
Pvfs2-developers mailing list
Pvfs2-developers@beowulf-underground.org
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers

Reply via email to