ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/doc/Makefile.in
Revision: 1.1
Committed: Sat Jul 21 01:25:40 2007 UTC (16 years, 10 months ago) by pippijn
Branch: MAIN
Log Message:
reworked documentation system

File Contents

# User Rev Content
1 pippijn 1.1 PERL = @PERL@
2     RM = @RM@
3     CP = @CP@
4     INSTALL = @INSTALL@
5     DESTDIR = @prefix@
6     SHAREDIR = @SHAREDIR@
7     DOCDIR = @DOCDIR@
8    
9     SUBDIRS = chanserv gameserv global memoserv nickserv operserv saslserv userserv
10    
11     build: html ermyth.pdf
12     ${CP} home.css html/
13    
14     html: gendocs help lib/PodHTML2.pm lib/html.tt lib/sidemenu.tt
15     ${PERL} gendocs
16    
17     help: genhelp lib/PodHelp.pm lib/PodHTML.pm lib/html.tt lib/sidemenu.tt
18     ${PERL} genhelp
19    
20     ermyth.pdf: genpdf ermyth.tex lib/LaTeX.pm
21     ${PERL} genpdf
22     texi2pdf -q ermyth.tex
23    
24     install: build
25     $(INSTALL) -m 755 -d $(DESTDIR)$(SHAREDIR)/help
26     cd help; for i in ${SUBDIRS}; do \
27     [ -f $$i ] && $(INSTALL) -m 644 $$i $(DESTDIR)$(SHAREDIR)/help; \
28     if [ -d $$i ]; then \
29     cd $$i; \
30     $(INSTALL) -m 755 -d $(DESTDIR)$(SHAREDIR)/help/$$i; \
31     for j in *; do \
32     [ -f $$j ] && $(INSTALL) -m 644 $$j $(DESTDIR)$(SHAREDIR)/help/$$i; \
33     done; \
34     cd ..; \
35     fi; \
36     done
37     $(INSTALL) -m 755 -d $(DESTDIR)$(DOCDIR)
38     for i in man/*; \
39     do $(INSTALL) -m 644 $$i $(DESTDIR)$(DOCDIR); \
40     done
41    
42     clean:
43     ${RM} -rf help html latex man template ttdoc tthelp ttsvs
44     ${RM} -f ermyth.aux ermyth.idx ermyth.ilg ermyth.ind ermyth.log ermyth.pdf ermyth.toc ermyth.out
45    
46     depend:
47    
48     upload: build
49     rsync -r html/* ruth:ermyth.schmorp.de/
50     rsync ermyth.pdf ruth:ermyth.schmorp.de/