forked from ahx/gbarcode
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
38 lines (28 loc) · 752 Bytes
/
Rakefile
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
GEM_VERSION = "1.06"
# desc "Run test code"
# Rake::TestTask.new(:test) do |t|
# ["ext", "lib", "test"].each {|lib| t.libs << lib}
# t.pattern = 'test/**/*_test.rb'
# t.verbose = true
# end
# desc "Create documentation"
# Rake::RDocTask.new(:docs) do |rd|
# rd.main = "README.txt"
# rd.rdoc_files.include("./*.txt")
# rd.options = RDOC_OPTS
# end
desc "Makes the Makefile"
task :extconf do
system 'cd ext/; ruby extconf.rb'
end
desc "Compiles extensions"
task :compile => [:extconf] do
system 'cd ext/; make'
end
desc 'Generate a gem file'
task :package do
puts "Building version: #{GEM_VERSION}"
sh "gem build gbarcode.gemspec"
end
# add compiled files to clean list
#CLOBBER << FileList["ext/**/*.o", "ext/Makefile"]