1 | --- Makefile.orig 2008-09-25 00:14:04.000000000 -0400 |
---|
2 | +++ Makefile 2008-09-25 00:46:01.000000000 -0400 |
---|
3 | @@ -17,12 +17,15 @@ |
---|
4 | rpm_prefix=$(HOME)/rpmbuild/ |
---|
5 | prefix = /usr/local/ |
---|
6 | exec_prefix = $(prefix) |
---|
7 | +realprefix = $(prefix) |
---|
8 | # directory where `make install' will put executable. |
---|
9 | bindir = $(exec_prefix)bin/ |
---|
10 | libdir = $(exec_prefix)lib/ |
---|
11 | +reallibdir = $(realprefix)lib/ |
---|
12 | libslibdir = $(libdir)slib/ |
---|
13 | +reallibslibdir = $(reallibdir)slib/ |
---|
14 | # directory where `make install' will put manual page. |
---|
15 | -man1dir = $(prefix)man/man1/ |
---|
16 | +man1dir = $(prefix)share/man/man1/ |
---|
17 | infodir = $(prefix)info/ |
---|
18 | |
---|
19 | PREVDOCS = prevdocs/ |
---|
20 | @@ -33,6 +36,7 @@ |
---|
21 | S48INIT = scheme48.init |
---|
22 | S48LIB = $(libdir)$(RUNNABLE)/ |
---|
23 | S48SLIB = $(S48LIB)slib/ |
---|
24 | +REALS48LIB = $(reallibdir)$(RUNNABLE)/ |
---|
25 | VM = scheme48vm |
---|
26 | IMAGE48 = slib.image |
---|
27 | INSTALL_DATA = install -c |
---|
28 | @@ -172,15 +176,15 @@ |
---|
29 | |
---|
30 | pinstall: slib.1 |
---|
31 | mkdir -p $(DESTDIR)$(man1dir) |
---|
32 | - -cp slib.1 $(DESTDIR)$(man1dir) |
---|
33 | + gzip -c slib.1 > $(DESTDIR)$(man1dir)slib.1.gz |
---|
34 | |
---|
35 | install: pinstall clrnamdb.scm |
---|
36 | mkdir -p $(DESTDIR)$(libslibdir) |
---|
37 | -cp $(ifiles) $(sfiles) $(bfiles) $(mkfiles) clrnamdb.scm $(DESTDIR)$(libslibdir) |
---|
38 | mkdir -p $(DESTDIR)$(bindir) |
---|
39 | echo '#! /bin/sh' > $(DESTDIR)$(bindir)slib |
---|
40 | - echo SCHEME_LIBRARY_PATH=$(DESTDIR)$(libslibdir) >> $(DESTDIR)$(bindir)slib |
---|
41 | - echo S48_VICINITY=$(DESTDIR)$(S48LIB) >> $(DESTDIR)$(bindir)slib |
---|
42 | + echo SCHEME_LIBRARY_PATH=$(DESTDIR)$(reallibslibdir) >> $(DESTDIR)$(bindir)slib |
---|
43 | + echo S48_VICINITY=$(DESTDIR)$(REALS48LIB) >> $(DESTDIR)$(bindir)slib |
---|
44 | echo VERSION=$(VERSION) >> $(DESTDIR)$(bindir)slib |
---|
45 | echo export SCHEME_LIBRARY_PATH S48_VICINITY >> $(DESTDIR)$(bindir)slib |
---|
46 | cat slib.sh >> $(DESTDIR)$(bindir)slib |
---|