[go: up one dir, main page]

Menu

[r1]: / trunk / doc / Makefile  Maximize  Restore  History

Download this file

97 lines (81 with data), 2.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
footer=footer.pod
pods = fuss.pod \
funroll::Directory.pod \
funroll::Page.pod \
funroll::Resize.pod \
funroll::Simple.pod
manpages= $(pods:.pod=.1)
htmlfiles= $(pods:.pod=.html)
mandir=man/man1
htmldir=html
# Command to make the man pages
makeman = cat $< $(footer) | pod2man -c "--funroll-slideshow" -r "fuss-0.9a" --name $(basename $(@)) > $(@)
makehtml = cat $< $(footer) | pod2html --title=$(basename $(@)) > $(@)
#
# If no target is specified, make man pages
.PHONY: first
first: man
#
# Make man and html pages
#
.PHONY: docs
docs: man html
mkdir -p $(htmldir) $(mandir)
cp -f $(htmlfiles) $(htmldir)
cp -f $(manpages) $(mandir)
#
# Sync html docs to SF website
#
.PHONY: rsync
rsync:
rsync -rCzv html/ gi1242@shell.sf.net:/home/groups/g/gi/gislide/htdocs/html/
#
# Make man pages
#
.PHONY: man
man:
# Ideally I'd like to say
# pod: $(manpages)
# and be done with it. However the :: in filenames seem to really mess make up.
# Could use the following shell script too...
for i in $(manpages); do make $$i; done
#
# Make html docs
#
.PHONY: html
html:
for i in $(htmlfiles); do make $$i; done
%.1: %.pod $(footer)
$(makeman)
%.html: %.pod $(footer)
$(makehtml)
.PHONY: clean
clean:
rm -f $(manpages) $(htmlfiles) *.tmp
# .PHONY: fullpods
# fullpods:
# mkdir -p fullpods
# for i in $(pods); do cat $$i $(footer) > fullpods/$$i; done
#
# funroll\:\:%.1 : %.pod $(footer)
# $(makeman)
#funroll\:\:simple.1 : simple.pod
# fuss.1 : fuss.pod $(footer)
# @echo "$(makeman)"
# funroll\:\:Page.1: page.pod $(footer)
# echo "$(makeman)"
# The rest of the rules are not working, do don't use them
# html: fuss.pod
# pod2html --title "--funroll-slideshow" --infile fuss.pod --outfile fuss.html
#
# docbook_dvi: fuss.sgml
# docbook2dvi fuss.sgml
#
# docbook_man: fuss.sgml
# docbook2man fuss.sgml
#
# docbook_html: fuss.sgml
# docbook2html fuss.sgml
#
# docbook_clean:
# rm -f -- *.1 manpage.links manpage.refs fuss.dvi