GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: A Nu and Objective-C wrapper for John Ousterhout's Tool Command Language (Tcl).
Homepage: http://programming.nu
Clone URL: git://github.com/timburks/nutcl.git
nutcl / Nukefile
100644 36 lines (25 sloc) 0.977 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
;; source files
(set @m_files (filelist -"^objc/.*\.m$"))
(set @nu_files    (filelist -"^nu/.*\.nu$"))
 
;; framework description
(set @framework "NuTcl")
(set @framework_identifier "nu.programming.tcl")
(set @framework_creator_code "????")
 
;; libraries
(ifDarwin
         (then
              (set @ldflags "-framework Foundation -framework Nu -ltcl -ledit"))
         (else
              (set @includes "-I /usr/include/tcl8.4") ;; set this as needed
              (set @ldflags "-L /usr/lib/tcl8.4 -ltcl8.4 -lreadline -lNu -lNuFound")))
 
(compilation-tasks)
(framework-tasks)
 
(task "clobber" => "clean" is
      (SH "rm -rf #{@framework_dir}"))
 
(task "default" => "framework")
 
(task "doc" is (SH "nudoc"))
 
(task "install" => "framework" is
      (SH "sudo rm -rf /Library/Frameworks/#{@framework}.framework")
      (SH "ditto #{@framework}.framework /Library/Frameworks/#{@framework}.framework"))
 
(task "test" => "framework" is
      (SH "nutest test/test_*.nu"))