# Set by configure - don't touch.
srcdir=@srcdir@
prefix=@prefix@
exec_prefix=@exec_prefix@
mandir=@mandir@
bindir=@bindir@
datadir=@datadir@
datarootdir=@datarootdir@
PERL=@PERL@
PERLMODS_NEEDED=JSON::MaybeXS Getopt::Long
all:
	true

install:
	@if test "$(PERL)" = "" ; then \
	    echo "Not installing rem2html; Perl is required"; exit 0; fi; \
	 for m in $(PERLMODS_NEEDED) ; \
	do \
	    $(PERL) -M$$m -e 1 > /dev/null 2>&1; \
	    if test $$? != 0 ; then echo "Not installing rem2html; missing $$m"; exit 0; fi; \
	done; \
	pod2man --center "VERSION @VERSION@" --date "@RELEASE_DATE@" rem2html > rem2html.1 && mkdir -p $(DESTDIR)$(mandir)/man1 && cp rem2html.1 $(DESTDIR)$(mandir)/man1/rem2html.1 || true; \
	echo "Installing rem2html in $(DESTDIR)$(bindir)"; \
	mkdir -p $(DESTDIR)$(bindir) && sed -e 's|^#!perl|#!$(PERL)|' < rem2html > $(DESTDIR)$(bindir)/rem2html && chmod 755 $(DESTDIR)$(bindir)/rem2html && exit 0; \
	exit 1;





