+ Install Scheme 48's doc/html/*.html in $prefix/html/

+ Don't use a temporary file to dump the image on installation
+ Let configure determine {bin,lib,inc,man}dir
This commit is contained in:
mainzelm 2001-12-17 09:41:52 +00:00
parent 99eaabd0a5
commit c7301be1b2
1 changed files with 14 additions and 14 deletions

View File

@ -24,13 +24,14 @@ RANLIB = @RANLIB@
prefix = @prefix@ prefix = @prefix@
exec_prefix = @exec_prefix@ exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
incdir = @includedir@
manext = 1
mandir = @mandir@/man$(manext)
### End of `configure' section### ### End of `configure' section###
bindir = $(exec_prefix)/bin htmldir = $(prefix)/html
libdir = $(exec_prefix)/lib
incdir = $(exec_prefix)/include
manext = 1
mandir = $(prefix)/man/man$(manext)
# HP 9000 series, if you don't have gcc # HP 9000 series, if you don't have gcc
# CC = cc # CC = cc
@ -361,8 +362,9 @@ inst-doc:
done && \ done && \
for f in $(srcdir)/doc/scsh-manual/html/*.html \ for f in $(srcdir)/doc/scsh-manual/html/*.html \
$(srcdir)/doc/scsh-manual/html/*.gif \ $(srcdir)/doc/scsh-manual/html/*.gif \
$(srcdir)/doc/scsh-manual/html/*.css; \ $(srcdir)/doc/scsh-manual/html/*.css \
do $(INSTALL_DATA) $$f $(LIB)/doc/scsh-manual/html/; \ $(srcdir)/doc/html/*.html; \
do $(INSTALL_DATA) $$f $(htmldir)/; \
done done
inst-script: inst-script:
@ -384,14 +386,14 @@ go:
chmod +x $@ chmod +x $@
dirs: dirs:
for dir in $(libdir) $(bindir) $(incdir) $(LIB) $(mandir); do \ for dir in $(libdir) $(bindir) $(incdir) $(LIB) $(mandir) $(htmldir); do\
{ mkdir -p $$dir && [ -w $$dir ]; } || { \ { mkdir -p $$dir && [ -w $$dir ]; } || { \
echo "$$dir not a writable directory" >&2; \ echo "$$dir not a writable directory" >&2; \
exit 1; \ exit 1; \
} \ } \
done && \ done && \
for dir in \ for dir in \
rts env big opt misc link scsh doc/scsh-manual/html cig; \ rts env big opt misc link scsh doc/scsh-manual cig; \
do \ do \
{ mkdir -p $(LIB)/$$dir && [ -w $(LIB)/$$dir ]; } || { \ { mkdir -p $(LIB)/$$dir && [ -w $(LIB)/$$dir ]; } || { \
echo "$(LIB)/$$dir not a writable directory" >&2; \ echo "$(LIB)/$$dir not a writable directory" >&2; \
@ -867,13 +869,11 @@ install-scsh: scsh install-scsh-image
for f in $(srcdir)/scsh/*.scm $(srcdir)/scsh/*/*.scm; \ for f in $(srcdir)/scsh/*.scm $(srcdir)/scsh/*/*.scm; \
do $(INSTALL_DATA) $$f $(LIB)/scsh/; done do $(INSTALL_DATA) $$f $(LIB)/scsh/; done
install-scsh-image: install-scsh-image: $(VM) scsh/scsh.image
rm -f '/tmp/scsh.image' && \
( echo ',translate =scheme48 $(LIB)'; \ ( echo ',translate =scheme48 $(LIB)'; \
echo '(dump-scsh "/tmp/scsh.image")'; \ echo '(dump-scsh "$(LIB)/scsh.image")'; \
echo ',exit'; \ echo ',exit'; \
) | ./$(VM) -i scsh/scsh.image && \ ) | ./$(VM) -i scsh/scsh.image
$(INSTALL_DATA) /tmp/scsh.image $(LIB)/scsh.image
clean-scsh: clean-scsh:
$(RM) scsh/*.o scsh/rx/*.o scsh/machine/*.o $(RM) scsh/*.o scsh/rx/*.o scsh/machine/*.o