forked from timburks/numarkdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNukefile
33 lines (24 loc) · 929 Bytes
/
Nukefile
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
;; source files
(set @m_files (filelist "^objc/.*.m$"))
(set @nu_files (filelist "^nu/.*nu$"))
(set @frameworks '("Cocoa" "Nu"))
;; framework description
(set @framework "NuMarkdown")
(set @framework_identifier "nu.programming.markdown")
(set @framework_creator_code "????")
(set @framework_initializer "MarkdownInit")
(compilation-tasks)
(framework-tasks)
(task "bin/nudown" is
(SH "gcc objc/nudown.m -o bin/nudown -framework Cocoa -framework Nu"))
(task "test" => "framework" is
(SH "nutest test/test_markdown.nu"))
(task "clean" is
(SH "rm -f test/SimpleTests/*.html")
(SH "rm -f test/MarkdownTests/*.html"))
(task "clobber" => "clean" is
(system "rm -rf #{@framework_dir}"))
(task "default" => "framework")
(task "install" => "framework" is
(SH "sudo cp bin/nudown /usr/local/bin/nudown")
(SH "ditto #{@framework_dir} /Library/Frameworks/#{@framework_dir}"))