1/*
2 * srecord - manipulate eprom load files
3 * Copyright (C) 2001, 2006, 2007, 2010, 2012, 2013 Peter Miller
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or (at
8 * your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19doxygen = [find_command doxygen];
20if [not [doxygen]] then
21    doxygen = doxygen;
22all += archive/srecord/index.html;
23
24archive/%0index.html: [match_mask %0%%0%%.h [source_files]] etc/doxygen.cfg
25    set shallow
26{
27    function if_quiet Doxygen;
28
29    cat [resolve etc/doxygen.cfg] - > Doxyfile;
30data
31# The OUTPUT_DIRECTORY tag is used to specify the (relative or
32# absolute) base path where the generated documentation will be
33# put.  If a relative path is entered, it will be relative to the
34# location where doxygen was started. If left blank the current
35# directory will be used.
36OUTPUT_DIRECTORY       = doxygen-tmp
37
38# documented source files. You may enter file names like "myfile.cpp"
39# or directories like "/usr/src/myproject". Separate the files or
40# directories with spaces.
41INPUT = [unsplit " \\\n" [resolve [stringset [need] - etc/Doxygen.cfg]]]
42
43# The PROJECT_NUMBER tag can be used to enter a project or revision
44# number.  This could be handy for archiving the generated
45# documentation or if some version control system is used.
46PROJECT_NUMBER = [version]
47dataend
48        [doxygen] Doxyfile
49                -d [reldir archive/%0index.html]
50                [resolve [stringset [need] - etc/doxygen.cfg]]
51                                                /*
52                                                 * have Cook tell use how long
53                                                 * it takes to cook.
54                                                 */
55                                                set meter
56                ;
57        rm -rf [reldir archive/%0index.html]
58                set silent errok;
59        mv doxygen-tmp/html [reldir archive/%0index.html];
60        rm -rf Doxyfile doxygen-tmp
61                set errok silent;
62}
63
64/* vim: set ts=8 sw=4 et : */
65