public
Description: A cross-platform web server that's scripted with Nu.
Homepage: http://programming.nu
Clone URL: git://github.com/timburks/nunja.git
timburks (author)
Sat Aug 23 21:46:46 -0700 2008
commit  1ed9762ad7486944a455b5b8970648da448c49fd
tree    97bc71175520996b78056270362537ea17766cf7
parent  8d485b4f198bcf89162129e8ed2a94c17da4c8e5
nunja / Nukefile
100644 38 lines (29 sloc) 1.19 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
37
38
;; source files
(set @m_files (filelist "^objc/.*.m$"))
(set @nu_files    (filelist "^nu/.*nu$"))
 
(set SYSTEM ((NSString stringWithShellCommand:"uname") chomp))
(case SYSTEM
      ("Darwin"
               (set @cflags "-g -DDARWIN")
               (set @ldflags "-framework Foundation -framework Nu -levent -lcrypto"))
      ("Linux"
   (set @arch (list "i386"))
              (set @cflags "-g -DLINUX -I/usr/local/include -fconstant-string-class=NSConstantString ")
              (set @ldflags "-L/usr/local/lib -lNuFound -lNu -levent -lcrypto"))
      (else nil))
 
;; framework description
(set @framework "Nunja")
(set @framework_identifier "nu.programming.nunja")
(set @framework_creator_code "????")
 
(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 cp nunjad /usr/local/bin")
      (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"))