* Makefile.am (ice-9/readline.scm): new target -- so readline will
authorRob Browning <rlb@defaultvalue.org>
Wed, 19 Mar 2003 23:46:19 +0000 (23:46 +0000)
committerRob Browning <rlb@defaultvalue.org>
Wed, 19 Mar 2003 23:46:19 +0000 (23:46 +0000)
work from the source tree when guile-readline is added to
GUILE_LOAD_PATH.
(all-local): add ice-9/readline.scm.
(clean-local): remove ice-9/readline at clean time.

guile-readline/Makefile.am

index df9aa4f..84ecd1e 100644 (file)
@@ -57,6 +57,18 @@ MKDEP = gcc -M -MG $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
 
 CLEANFILES = *.x
 
+ice-9/readline.scm:
+       -rm ice-9/readline.scm
+       -rmdir ice-9
+       mkdir ice-9
+       cd ice-9 && ln -s ../readline.scm
+
+all-local: ice-9/readline.scm
+
+clean-local:
+       rm -f ice-9/readline.scm
+       -rmdir ice-9
+
 dist-hook:
        (temp="/tmp/mangle-deps.$$$$"; \
         trap "rm -f $$temp" 0 1 2 15; \