Changeset e503cea9 in mainline for doxygen/meson.build


Ignore:
Timestamp:
2019-08-17T12:49:43Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
92fff0c
Parents:
1783f75
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-29 14:30:56)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
Message:

use meson target for doxygen

File:
1 moved

Legend:

Unmodified
Added
Removed
  • doxygen/meson.build

    r1783f75 re503cea9  
    2727#
    2828
    29 cfg_file = doxygen.cfg
    30 gen_cfg = doxygen.cfg.gen
    31 patch_file = doxygen.cfg.diff
    32 output_dirs = latex html
     29doxygen = find_program('doxygen')
     30patch = find_program('patch')
     31patch_file = files('doxygen.cfg.diff')
    3332
    34 all: doxygen.cfg
    35         doxygen $^
    3633
    37 clean:
    38         rm -f $(gen_cfg) $(cfg_file)
    39         rm -rf $(output_dirs)
     34gen_cfg = custom_target('doxygen.cfg.gen',
     35        output: 'doxygen.cfg.gen',
     36        command: [ doxygen, '-g', '@OUTPUT@' ],
     37)
    4038
    41 $(cfg_file): $(gen_cfg)
    42         cp $^ $@
    43         patch $@ $(patch_file)
     39dox_cfg = custom_target('doxygen.cfg',
     40        output: 'doxygen.cfg',
     41        input: [ gen_cfg, patch_file ],
     42        command: [ patch, '-o', '@OUTPUT@', '@INPUT@' ],
     43)
    4444
    45 $(gen_cfg):
    46         doxygen -g $@
     45run_target('doxygen', command: [ doxygen, dox_cfg ])
Note: See TracChangeset for help on using the changeset viewer.