- allow compiling/running html tests without compiling main crate tests (useful when e.g. making type changes to events but html unaffected) - avoid need for future flags in main crate
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			508 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			508 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
.POSIX:
 | 
						|
 | 
						|
.SUFFIXES: .test .rs
 | 
						|
 | 
						|
TEST=$(shell find ut -name '*.test' | sort)
 | 
						|
TEST_RS=${TEST:.test=.rs}
 | 
						|
 | 
						|
BLACKLIST += djot_js_filters # lua filters not implemented
 | 
						|
BLACKLIST += djot_js_symb # uses ast
 | 
						|
BLACKLIST += djot_js_sourcepos # not parsable
 | 
						|
 | 
						|
ut/mod.rs: ${TEST_RS}
 | 
						|
	mkdir -p ut
 | 
						|
	rm -f $@
 | 
						|
	for f in ${TEST}; do \
 | 
						|
		name=$$(basename -s .test $$f); \
 | 
						|
		echo ${BLACKLIST} | tr ' ' '\n' | grep -q $$name || echo "mod $$name;" >> $@; \
 | 
						|
	done
 | 
						|
 | 
						|
.test.rs:
 | 
						|
	gawk -fgen.awk $< | head -n-1 > $@
 | 
						|
 | 
						|
clean:
 | 
						|
	rm -f ut/*.rs
 |