build:
	mkdir -p man
	for f in doc/*.latex; do latex2man $$f man/$$(basename $$f .latex).man; done

install:
	install -o root -g root -m 755 -d $(DESTDIR)/usr/bin $(DESTDIR)/usr/sbin
	install -o root -g root -m 755 bin/* $(DESTDIR)/usr/bin
	install -o root -g root -m 755 sbin/* $(DESTDIR)/usr/sbin

clean:
	rm -rf man