1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-18 10:04:20 +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@ LIBS = @LIBS@
# Setup directory variables # Setup directory variables
prefix = @prefix@ prefix = $(DESTDIR)@prefix@
exec_prefix = @exec_prefix@ exec_prefix = $(DESTDIR)@exec_prefix@
bindir = @bindir@ bindir = @bindir@
libdir = @libdir@ libdir = @libdir@
sbindir = @sbindir@ sbindir = @sbindir@

View File

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

View File

@ -64,9 +64,10 @@ lvm: $(OBJECTS) $(top_srcdir)/lib/liblvm.a
grep -v help > .commands grep -v help > .commands
install: $(TARGETS) 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 $(sbindir)/lvm
( \ @echo Creating symbolic links for individual commands in $(sbindir)
@( \
for v in `cat .commands`; do \ for v in `cat .commands`; do \
cd $(sbindir); \ cd $(sbindir); \
$(LN_S) -f lvm $$v; \ $(LN_S) -f lvm $$v; \