github.com/gopherd/gonum@v0.0.4/graph/formats/dot/internal/Makefile (about)

     1  gen: dot.bnf
     2  	gocc $<
     3  	go run paste_copyright.go
     4  
     5  debug_lexer: dot.bnf
     6  	gocc -debug_lexer -v -a $<
     7  	go run paste_copyright.go
     8  
     9  debug_parser: dot.bnf
    10  	gocc -debug_parser -v -a $<
    11  	go run paste_copyright.go
    12  
    13  clean:
    14  	rm -f errors/errors.go
    15  	rm -f lexer/acttab.go
    16  	rm -f lexer/lexer.go
    17  	rm -f lexer/transitiontable.go
    18  	rm -f parser/action.go
    19  	rm -f parser/actiontable.go
    20  	rm -f parser/gototable.go
    21  	rm -f parser/parser.go
    22  	rm -f parser/productionstable.go
    23  	rm -f token/token.go
    24  	rm -f util/litconv.go
    25  	rm -f util/rune.go
    26  	-rmdir --ignore-fail-on-non-empty errors
    27  	-rmdir --ignore-fail-on-non-empty lexer
    28  	-rmdir --ignore-fail-on-non-empty parser
    29  	-rmdir --ignore-fail-on-non-empty token
    30  	-rmdir --ignore-fail-on-non-empty util
    31  	rm -f terminals.txt LR1_conflicts.txt LR1_sets.txt first.txt lexer_sets.txt
    32  
    33  .PHONY: gen debug_lexer debug_parser clean