~singpolyma/dhall-ruby

ref: c6423bf295865465d375576c4de3d309c38c1112 dhall-ruby/Makefile -rw-r--r-- 664 bytes
c6423bf2Stephen Paul Weber Dhall::Coder 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.PHONY: lint test unit clean

lib/dhall/parser.citrus: dhall-lang/standard/dhall.abnf scripts/generate_citrus_parser.rb lib/dhall/parser.rb
	bundle exec ruby -E UTF-8 scripts/generate_citrus_parser.rb < dhall-lang/standard/dhall.abnf > $@

dhall.gem: lib/dhall/parser.citrus dhall.gemspec
	$(RM) dhall.gem
	gem build dhall.gemspec
	mv dhall*.gem dhall.gem

lint:
	rubocop -D

test: lib/dhall/parser.citrus
	bundle exec ruby -E UTF-8 test/test_suite.rb

unit: lib/dhall/parser.citrus
	bundle exec ruby -E UTF-8 test/test_suite.rb -n'/unit|import|TestReadme|TestLoad|TestAsDhall|TestResolvers|TestBinary|TestAsJson|TestCoder/'

clean:
	$(RM) lib/dhall/parser.citrus