#!/usr/bin/make -f

FONTDIR := debian/fonts-ia-writer/usr/share/fonts/truetype/ia-writer

%:
	dh $@

# Upstream's directory names carry spaces ("iA Writer Mono/Static"), which the
# whitespace-separated lines of a .install file cannot name, so the faces are
# installed here instead.
override_dh_auto_install:
	install -d $(FONTDIR)
	install -m 0644 -t $(FONTDIR) \
		"iA Writer Mono/Static/"*.ttf \
		"iA Writer Duo/Static/"*.ttf \
		"iA Writer Quattro/Static/"*.ttf \
		"iA Writer Duospace/TTF (PC)/"*.ttf
