meson.build 996 B

1234567891011121314151617181920212223242526272829
  1. # Included from top-level meson.build
  2. ## Generate man-pages
  3. # Dinit need 'm4' to gen man-pages
  4. foreach man: ['dinit-service.5', 'dinit.8', 'dinitcheck.8', 'dinitctl.8', 'dinit-monitor.8']
  5. section = 'man' + man.split('.')[1]
  6. custom_target(
  7. man,
  8. input: man + '.m4',
  9. output: man,
  10. command: ['m4', '-DVERSION='+version, '-DMONTH='+month, '-DYEAR='+year, '@INPUT@'],
  11. capture: true,
  12. install: true,
  13. install_dir: join_paths(get_option('mandir'), section),
  14. )
  15. endforeach
  16. if shutdown_build
  17. foreach shutdown_man: ['shutdown.8', 'reboot.8', 'halt.8']
  18. custom_target(
  19. shutdown_man,
  20. input: 'shutdown.8.m4',
  21. output: shutdown_prefix + shutdown_man,
  22. command: ['m4', '-DVERSION='+version, '-DMONTH='+month, '-DYEAR='+year, '@INPUT@'],
  23. capture: true,
  24. install: true,
  25. install_dir: join_paths(get_option('mandir'), section),
  26. )
  27. endforeach
  28. endif