PREFIX	= /usr/local
CMD		= clamdsh.pl
MAN		= clamdsh.pl.1
HTML	= clamdsh.html

%.pl.1: %.pl
	pod2man $< $@

%.html: %.pl
	pod2html --infile $< --outfile $@
	rm pod2htmd.tmp pod2htmi.tmp

all: man

clean:
	rm -f $(MAN) $(HTML)

html: $(HTML)

man: $(MAN)

install: man
	install -m 0755 $(CMD) $(PREFIX)/bin/
	install -m 0644 $(MAN) $(PREFIX)/share/man/man1/
