2 MKHOWTO
=..
/tools
/mkhowto
4 RSTARGS
= --input-encoding
=utf-8
7 # List of HOWTOs that aren't to be processed
11 # Determine list of files to be built
13 HOWTO
=$(filter-out $(REMOVE_HOWTO
),$(wildcard *.
tex))
14 RST_SOURCES
= $(shell echo
*.rst
)
15 DVI
=$(patsubst %.
tex,%.
dvi,$(HOWTO
))
16 PDF
=$(patsubst %.
tex,%.pdf
,$(HOWTO
))
17 PS
=$(patsubst %.
tex,%.ps
,$(HOWTO
))
18 TXT
=$(patsubst %.
tex,%.txt
,$(HOWTO
))
19 HTML
=$(patsubst %.
tex,%,$(HOWTO
))
21 # Rules for building various formats
39 $(MKHOWTO
) --html
--iconserver
="." $<
40 tar -zcvf html
/$*.tgz
$*
41 #zip -r html/$*.zip $*
44 @echo
"'all' -- build all files"
45 @echo
"'dvi', 'pdf', 'ps', 'txt', 'html' -- build one format"
49 .PHONY
: dvi pdf ps txt html rst
57 # Rule to build collected tar files
59 for i in
dvi pdf ps txt
; do \
61 tar -zcf All.tgz
*.
$$i ;\
65 # Rule to copy files to the Web tree on AMK's machine
67 cp
dvi/* $(WEBDIR
)/dvi
69 cp pdf
/* $(WEBDIR
)/pdf
70 cp txt
/* $(WEBDIR
)/txt
71 for
dir in
$(HTML
) ; do cp
-rp
$$dir $(WEBDIR
) ; done
72 for ltx in
$(HOWTO
) ; do cp
-p
$$ltx $(WEBDIR
)/latex
; done
77 rst2html
$(RSTARGS
) $< >$@
80 rm -f
*~
*.log
*.ind
*.l2h
*.aux
*.toc
*.how
81 rm -f
*.
dvi *.ps
*.pdf
*.bkm
85 rm dvi/* ps
/* pdf
/* txt
/* html
/*