Ticket #933: crunch.h-installed-by-install-extension.diff

File crunch.h-installed-by-install-extension.diff, 997 bytes (added by Mario Domenech Goulart, 12 years ago)
  • crunch.setup

     
    1717
    1818(install-extension
    1919 'crunch
    20  '("crunch.so" "crunch-compiler.so" "crunch-expander.so"
     20 `("crunch.so" "crunch-compiler.so" "crunch-expander.so"
    2121   "crunch-compiler.import.so" "crunch-expander.import.so"
    22    "crunch-syntax.scm" "crunch.import.so")
     22   "crunch-syntax.scm" "crunch.import.so"
     23   ("crunch.h"
     24    ;;XXX actually wrong: "chicken" depends on $PROGRAM_PREFIX/_SUFFIX...
     25    ,(make-pathname `(,(installation-prefix) "include" "chicken") "crunch.h")))
    2326 '((version "0.7.999")))
    2427
    2528(install-program 'chicken-crunch "chicken-crunch")
    26 
    27 (when (setup-install-mode)
    28   ;;XXX actually wrong: "chicken" depends on $PROGRAM_PREFIX/_SUFFIX...
    29   (let ((dir (make-pathname (installation-prefix) "include/chicken")))
    30     (unless (file-exists? dir)
    31       (create-directory dir #t) )
    32     (copy-file "crunch.h" dir)))