#!/usr/bin/make -f
%:
	dh $@

variable_otf:
	for ds in $(wildcard sources/*/*.designspace) ; \
	do \
		fontmake -a -o variable-cff2 -m $${ds} ; \
	done

override_dh_auto_build: variable_otf
	for otf in $(wildcard variable_otf/*.otf) ; \
	do \
		woff2_compress $${otf} ; \
	done

execute_after_dh_clean:
	$(RM) -rf variable_otf/
