tagged release 0.6.4
[parrot.git] / config / gen / makefiles / docs.in
blob25eee7abfd7c1ad4674ff1dccb37b1f9d9c33002
1 # Copyright (C) 2001-2006, The Perl Foundation.
2 # $Id$
4 # Setup of some commands
5 PERL   = @perl@
6 RM_F   = @rm_f@
7 MKPATH = @mkpath@
8 CHMOD  = @chmod@
9 PERLDOC = @perldoc@
11 # long list of .pod files
12 POD = @pod@
15 # Targets
18 # The default target
19 all: doc-prep packfile-c.pod $(POD)
21 # This is a listing of all targets, that are meant to be called by users
22 # Most of them are proxied in the root makefile parrot/Makefile
23 help :
24         @echo ""
25         @echo "Following targets are available to the user:"
26         @echo ""
27         @echo "  all:               Generate documentation from .pod files or from the sources."
28         @echo "                     This is the default target."
29         @echo "  clean:             Remove the generated documentation."
30         @echo "  html:              Generate HTML documentation."
31         @echo "  html-clean:        Remove the generated HTML documentation."
32         @echo ""
34 doc-prep:
35         $(MKPATH) ops
37 packfile-c.pod: ../src/packfile.c
38 #CONDITIONED_LINE(new_perldoc): perldoc -ud packfile-c.pod ../src/packfile.c 
39 #INVERSE_CONDITIONED_LINE(new_perldoc): perldoc -u ../src/packfile.c > packfile-c.pod
41 clean:
42         $(RM_F) packfile-c.pod $(POD)
44 html:
45         $(PERL) -I../lib ../tools/docs/write_docs.pl --silent
47 html-clean:
48         $(PERL) -I../lib -MParrot::Distribution -e "Parrot::Distribution->new()->delete_html_docs()"