PREFIX = /usr
DESTDIR =

dh_appstream.1:
	pod2man $(if $(DEB_VERSION),--release="$(DEB_VERSION)") --center="dh-appstream" dh_appstream dh_appstream.1

install:
	install -D dh_appstream $(DESTDIR)$(PREFIX)/bin/dh_appstream
	install -D dh_appstream.1 $(DESTDIR)$(PREFIX)/share/man/man1/dh_appstream.1
	install -D lib/Debian/Debhelper/Sequence/appstream.pm \
		$(DESTDIR)$(PREFIX)/share/perl5/Debian/Debhelper/Sequence/appstream.pm
	install -d $(DESTDIR)$(PREFIX)/share/dh-appstream/templates
	install -m 644 share/dh-appstream/templates/font.metainfo.xml \
		$(DESTDIR)$(PREFIX)/share/dh-appstream/templates/font.metainfo.xml

clean:
	$(RM) dh_appstream.1

.PHONY: install clean
