#!/usr/bin/make -f


%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
	rm -rf data essay.kct

override_dh_auto_build:
	dh_auto_build
	cp -v extra/*.yaml data
	cd data; \
	    for schema in *.schema.yaml; \
	    do \
	        rime_deployer --compile $$schema; \
	    done; \
	    rm -fv *.prism.txt *.table.txt # unnecessary files

override_dh_install:
	dh_install --fail-missing
