#!/usr/bin/make -f

%:
	dh $@

INCLUDE := debian/msp430-gcc-support-files/usr/msp430-unknown-elf/include
$(INCLUDE):
	mkdir -p $@

$(INCLUDE)/%.h: include/%.h | $(INCLUDE)
	iconv -f CP1252 -t UTF-8 -o $@ $<

execute_before_dh_install: $(subst include,$(INCLUDE),$(wildcard include/*.h))

override_dh_auto_changelog:
	dh_auto_changelog Revisions_Header.txt
