1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fix $DESTDIR support

This commit is contained in:
Alasdair Kergon 2002-01-02 14:23:10 +00:00
parent 48b512b964
commit 470933a480
3 changed files with 11 additions and 9 deletions

View File

@ -29,8 +29,8 @@ LN_S = @LN_S@
LIBS = @LIBS@
# Setup directory variables
prefix = @prefix@
exec_prefix = @exec_prefix@
prefix = $(DESTDIR)@prefix@
exec_prefix = $(DESTDIR)@exec_prefix@
bindir = @bindir@
libdir = @libdir@
sbindir = @sbindir@

View File

@ -28,15 +28,16 @@ MAN8DIR=${mandir}/man8
include ../make.tmpl
install:
@echo "*** Installing $(ALL_MANUALS) in $(DESTDIR)$(MAN8DIR) ***"
@echo "Installing $(MAN8) in $(MAN8DIR)"
@for f in $(MAN8); \
do \
$(RM) $(DESTDIR)$(MAN8DIR)/$$f; \
@INSTALL@ -D -o $(OWNER) -g $(GROUP) -m 444 $$f $(DESTDIR)$(MAN8DIR)/$$f; \
$(RM) $(MAN8DIR)/$$f; \
@INSTALL@ -D -o $(OWNER) -g $(GROUP) -m 444 $$f $(MAN8DIR)/$$f; \
done
@echo "Installing $(MAN5) in $(MAN8DIR)"
@for f in $(MAN5); \
do \
$(RM) $(DESTDIR)$(MAN5DIR)/$$f; \
@INSTALL@ -D -o $(OWNER) -g $(GROUP) -m 444 $$f $(DESTDIR)$(MAN5DIR)/$$f; \
$(RM) $(MAN5DIR)/$$f; \
@INSTALL@ -D -o $(OWNER) -g $(GROUP) -m 444 $$f $(MAN5DIR)/$$f; \
done

View File

@ -64,9 +64,10 @@ lvm: $(OBJECTS) $(top_srcdir)/lib/liblvm.a
grep -v help > .commands
install: $(TARGETS)
$(INSTALL) -c -o $(OWNER) -g $(GROUP) -m 555 $(STRIP) -D lvm \
$(INSTALL) -D -o $(OWNER) -g $(GROUP) -m 555 $(STRIP) lvm \
$(sbindir)/lvm
( \
@echo Creating symbolic links for individual commands in $(sbindir)
@( \
for v in `cat .commands`; do \
cd $(sbindir); \
$(LN_S) -f lvm $$v; \