echo '(load "check")' | $(exe)
install:
- echo '(install-shim "blowfish")' | $(exe) -- *.com *.bci *.pkd make.scm
- echo '(install-load-option "blowfish")' | $(exe)
+ ( echo '(begin'; \
+ echo ' (install-shim "blowfish")'; \
+ echo ' (install-load-option "blowfish"))' ) \
+ | $(exe) -- *.com *.bci *.pkd make.scm
clean:
rm -f blowfish-const.scm blowfish-const blowfish-const.c
(run-command (append CCLD LDFLAGS (command-line) MODULE_LDFLAGS)))
(define (install-shim libname)
- (let* ((pathname (pathname-as-directory libname))
- (library-dir
- (->namestring
- (or (system-library-directory-pathname pathname)
- (merge-pathnames pathname
- (system-library-directory-pathname))))))
- (run-command (list "rm" "-rf" library-dir))
- (run-command (list "mkdir" library-dir))
- (run-command (append (list "install" "-m" "644")
- (command-line) (list library-dir)))
+ (let ((library-dir (merge-pathnames (pathname-as-directory libname)
+ (system-library-directory-pathname))))
(run-command (list "install" "-m" "644"
(string-append libname "-shim.so")
(string-append libname "-types.bin")
(string-append libname "-const.bin")
- (->namestring
- (pathname-new-directory
- library-dir
- (except-last-pair
- (pathname-directory library-dir))))))))
+ (->namestring library-dir)))))
(define (install-load-option name #!optional directory)
(guarantee-string name 'INSTALL-OPTION)
(let ((dir (if (default-object? directory) name directory)))
(guarantee-string dir 'INSTALL-OPTION)
- (rewrite-file (system-library-pathname "optiondb.scm")
+ (let ((library-dir (->namestring
+ (merge-pathnames (pathname-as-directory dir)
+ (system-library-directory-pathname)))))
+ (run-command (list "rm" "-rf" library-dir))
+ (run-command (list "mkdir" library-dir))
+ (run-command (list "chmod" "755" library-dir))
+ (run-command (append (list "install" "-m" "644")
+ (command-line) (list library-dir))))
+ (rewrite-file (merge-pathnames "optiondb.scm"
+ (system-library-directory-pathname))
(lambda (in out)
(rewrite-optiondb name dir in out)))))
echo '(load "check")' | $(exe)
install:
- echo '(install-shim "gdbm")' | $(exe) -- *.com *.bci *.pkd make.scm
- echo '(install-load-option "gdbm2" "gdbm")' | $(exe)
+ ( echo '(begin'; \
+ echo ' (install-shim "gdbm")'; \
+ echo ' (install-load-option "gdbm2" "gdbm")' ) \
+ | $(exe) -- *.com *.bci *.pkd make.scm
clean distclean maintainer-clean:
rm -f gdbm-const.scm gdbm-const gdbm-const.c gdbm-shim.c
echo '(load "check")' | $(exe)
install:
- echo '(install-shim "md5")' | $(exe) -- *.com *.bci *.pkd make.scm
- echo '(install-load-option "md5")' | $(exe)
+ ( echo '(begin';
+ echo ' (install-shim "md5")';
+ echo ' (install-load-option "md5"))' ) \
+ | $(exe) -- *.com *.bci *.pkd make.scm
clean:
rm -f md5-const.scm md5-const md5-const.c md5-shim.c
echo '(load "check")' | $(exe)
install:
- echo '(install-shim "mhash")' | $(exe) -- *.com *.bci *.pkd make.scm
- echo '(install-load-option "mhash")' | $(exe)
+ ( echo '(begin';
+ echo ' (install-shim "mhash")';
+ echo ' (install-load-option "mhash"))' ) \
+ | $(exe) -- *.com *.bci *.pkd make.scm
clean:
rm -f mhash-const.scm mhash-const mhash-const.c mhash-shim.c