forked from itfrombit/nusmtp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNukefile
37 lines (26 loc) · 1010 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
34
35
36
;;
;; Nukefile for NuSMTP
;;
;; Commands:
;; nuke - builds NuSMTP as a framework
;; nuke install - installs NuSMTP in /Library/Frameworks
;; nuke clean - removes build artifacts
;; nuke clobber - removes build artifacts and NuSMTP.framework
;;
;; source files
(set @m_files (filelist "^objc/.*.m$"))
;; framework description
(set @framework "NuSMTP")
(set @framework_identifier "nu.programming.smtp")
(set @framework_creator_code "????")
(set @arch (list "x86_64" "i386"))
(set @cflags "-g -fobjc-gc -std=gnu99 -I Source")
(set @ldflags "-framework Foundation -framework CoreServices")
(compilation-tasks)
(framework-tasks)
(task "clobber" => "clean" is
(SH "rm -rf #{@framework_dir}")) ;; @framework_dir is defined by the nuke framework-tasks macro
(task "default" => "framework")
(task "install" => "framework" is
(SH "sudo rm -rf /Library/Frameworks/#{@framework}.framework")
(SH "ditto #{@framework}.framework /Library/Frameworks/#{@framework}.framework"))