bin_SCRIPTS = test
man_DATA = ME8100.3

.PHONY: all clean

all:	$(bin_SCRIPTS) $(man_DATA)
clean:
	-rm -f $(bin_SCRIPTS) $(man_DATA)

test:	test.pl ME8100.pm

%:	%.pl Makefile
	perl -c $<
	cp -f $< $@
	chmod +x $@

%.3:	%.pm Makefile
	pod2man --section 3 $< >$@ || rm $@
	@test -f $@
