1 | --- Makefile.in.orig 2007-01-06 18:14:10.000000000 +0000 |
---|
2 | +++ Makefile.in 2007-02-08 19:07:23.000000000 +0000 |
---|
3 | @@ -26,7 +26,7 @@ |
---|
4 | libdir = $(exec_prefix)/lib |
---|
5 | incdir = $(exec_prefix)/include |
---|
6 | manext = 1 |
---|
7 | -mandir = $(prefix)/man/man$(manext) |
---|
8 | +mandir = @mandir@/man$(manext) |
---|
9 | |
---|
10 | # HP 9000 series, if you don't have gcc |
---|
11 | # CC = cc |
---|
12 | @@ -300,40 +300,40 @@ |
---|
13 | inst-script-interpreters |
---|
14 | |
---|
15 | inst-vm: |
---|
16 | - $(INSTALL_PROGRAM) $(VM) $(LIB) |
---|
17 | + $(INSTALL_PROGRAM) $(VM) $(DESTDIR)$(LIB) |
---|
18 | |
---|
19 | inst-image: |
---|
20 | rm -f '/tmp/$(IMAGE)' && \ |
---|
21 | $(srcdir)/build/build-usual-image $(srcdir) '$(LIB)' \ |
---|
22 | '/tmp/$(IMAGE)' './$(VM)' '$(INITIAL)' && \ |
---|
23 | - $(INSTALL_DATA) /tmp/$(IMAGE) $(LIB) && \ |
---|
24 | + $(INSTALL_DATA) /tmp/$(IMAGE) $(DESTDIR)$(LIB) && \ |
---|
25 | rm /tmp/$(IMAGE) |
---|
26 | |
---|
27 | inst-man: |
---|
28 | - $(srcdir)/mkinstalldirs $(mandir) |
---|
29 | + $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir) |
---|
30 | sed 's=LBIN=$(bindir)=g' $(srcdir)/doc/scheme48.man | \ |
---|
31 | sed 's=LLIB=$(LIB)=g' | \ |
---|
32 | sed 's=LS48=$(RUNNABLE)=g' >$(MANPAGE) && \ |
---|
33 | - $(INSTALL_DATA) $(MANPAGE) $(mandir) && \ |
---|
34 | + $(INSTALL_DATA) $(MANPAGE) $(DESTDIR)$(mandir) && \ |
---|
35 | rm $(MANPAGE); \ |
---|
36 | |
---|
37 | inst-inc: |
---|
38 | - $(INSTALL_DATA) $(srcdir)/c/scheme48.h $(incdir) |
---|
39 | - $(INSTALL_DATA) $(srcdir)/c/scheme48write-barrier.h $(incdir) |
---|
40 | + $(INSTALL_DATA) $(srcdir)/c/scheme48.h $(DESTDIR)$(incdir) |
---|
41 | + $(INSTALL_DATA) $(srcdir)/c/scheme48write-barrier.h $(DESTDIR)$(incdir) |
---|
42 | |
---|
43 | inst-misc: |
---|
44 | for stub in env big sort opt misc link posix cml srfi; do \ |
---|
45 | for f in $(srcdir)/scheme/$$stub/*.scm; do \ |
---|
46 | - $(INSTALL_DATA) $$f $(LIB)/$$stub || exit 1; \ |
---|
47 | + $(INSTALL_DATA) $$f $(DESTDIR)$(LIB)/$$stub || exit 1; \ |
---|
48 | done; \ |
---|
49 | done && \ |
---|
50 | for f in $(srcdir)/scheme/rts/*num.scm \ |
---|
51 | $(srcdir)/scheme/rts/jar-defrecord.scm; do \ |
---|
52 | - $(INSTALL_DATA) $$f $(LIB)/rts || exit 1; \ |
---|
53 | + $(INSTALL_DATA) $$f $(DESTDIR)$(LIB)/rts || exit 1; \ |
---|
54 | done |
---|
55 | |
---|
56 | inst-script: |
---|
57 | - script=$(bindir)/$(RUNNABLE) && \ |
---|
58 | + script=$(DESTDIR)$(bindir)/$(RUNNABLE) && \ |
---|
59 | echo '#!/bin/sh' >$$script && \ |
---|
60 | echo >>$$script && \ |
---|
61 | echo 'lib=$(LIB)' >>$$script && \ |
---|
62 | @@ -343,7 +343,7 @@ |
---|
63 | |
---|
64 | inst-script-interpreters: |
---|
65 | for dialect in r5rs srfi-7; do \ |
---|
66 | - $(INSTALL_PROGRAM) script-interpreter $(bindir)/scheme-$$dialect; \ |
---|
67 | + $(INSTALL_PROGRAM) script-interpreter $(DESTDIR)$(bindir)/scheme-$$dialect; \ |
---|
68 | done |
---|
69 | |
---|
70 | # Script to run scheme48 in this directory. |
---|
71 | @@ -357,11 +357,11 @@ |
---|
72 | |
---|
73 | dirs: |
---|
74 | for dir in $(libdir) $(bindir) $(incdir); do \ |
---|
75 | - $(srcdir)/mkinstalldirs $$dir || exit 1; \ |
---|
76 | + $(srcdir)/mkinstalldirs $(DESTDIR)$$dir || exit 1; \ |
---|
77 | done |
---|
78 | - $(srcdir)/mkinstalldirs $(LIB) |
---|
79 | + $(srcdir)/mkinstalldirs $(DESTDIR)$(LIB) |
---|
80 | for dir in rts env big sort opt misc link posix cml srfi; do \ |
---|
81 | - $(srcdir)/mkinstalldirs $(LIB)/$$dir || exit 1; \ |
---|
82 | + $(srcdir)/mkinstalldirs $(DESTDIR)$(LIB)/$$dir || exit 1; \ |
---|
83 | done |
---|
84 | |
---|
85 | configure: configure.in |
---|