~singpolyma/dhall-ruby

dhall-ruby/Makefile -rw-r--r-- 665 bytes
da136a3bStephen Paul Weber Fix for Ruby 2.6+ 6 months 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 -fn'/unit|import|TestReadme|TestLoad|TestAsDhall|TestResolvers|TestBinary|TestAsJson|TestCoder/'

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