# Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team # Rights to this code are documented in doc/pod/gpllicense.pod. # # This file contains build instructions. # # $Id: Makefile.in,v 1.5 2007/08/28 17:08:06 pippijn Exp $ # PERL = @PERL@ RM = @RM@ CP = @CP@ INSTALL = @INSTALL@ DESTDIR = @prefix@ SHAREDIR = @SHAREDIR@ DOCDIR = @DOCDIR@ SUBDIRS = chanserv gameserv global memoserv nickserv operserv saslserv userserv build: html rss ermyth.pdf ${CP} home.css html/ ${CP} lib/pdf.gif html/ rss: gennews html podmisc/news.pod ${PERL} gennews html: gendocs help lib/PodHTML.pm lib/PodHTML2.pm lib/html.tt lib/sidemenu.tt variables.yml ${PERL} gendocs help: genhelp lib/PodHelp.pm lib/PodHTML.pm lib/html.tt lib/sidemenu.tt variables.yml ${PERL} genhelp ermyth.pdf: genpdf ermyth.tex lib/LaTeX.pm ${PERL} genpdf texi2pdf -q ermyth.tex install: build $(INSTALL) -m 755 -d $(DESTDIR)$(SHAREDIR)/help cd help; for i in ${SUBDIRS}; do \ [ -f $$i ] && $(INSTALL) -m 644 $$i $(DESTDIR)$(SHAREDIR)/help; \ if [ -d $$i ]; then \ cd $$i; \ $(INSTALL) -m 755 -d $(DESTDIR)$(SHAREDIR)/help/$$i; \ for j in *; do \ [ -f $$j ] && $(INSTALL) -m 644 $$j $(DESTDIR)$(SHAREDIR)/help/$$i; \ done; \ cd ..; \ fi; \ done $(INSTALL) -m 755 -d $(DESTDIR)$(DOCDIR) for i in man/*; \ do $(INSTALL) -m 644 $$i $(DESTDIR)$(DOCDIR); \ done clean: ${RM} -rf help html latex man template ttdoc tthelp ttsvs ${RM} -f ermyth.aux ermyth.idx ermyth.ilg ermyth.ind ermyth.log ermyth.pdf ermyth.toc ermyth.out news.xml distclean: ${RM} -f Makefile .depend maintainer-clean: distclean depend: upload: build rsync news.xml ruth:ermyth.schmorp.de/ rsync -r html/* ruth:ermyth.schmorp.de/ rsync ermyth.pdf ruth:ermyth.schmorp.de/