ref: 1ad5cd7081e671be543e1e71832d4eb369318c68 dhall-ruby/Makefile -rw-r--r-- 664 bytes View raw
                                                                                
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