manpages.am 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. appmandir = $(APP_MAN_DIR)
  2. #appman_PRE = list of application man page files set by calling Makefile.am
  3. appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX))
  4. drivermandir = $(DRIVER_MAN_DIR)
  5. #driverman_PRE = list of driver man page files set by calling Makefile.am
  6. driverman_DATA = $(driverman_PRE:man=$(DRIVER_MAN_SUFFIX))
  7. filemandir = $(FILE_MAN_DIR)
  8. #fileman_PRE = list of file man page files set by calling Makefile.am
  9. fileman_DATA = $(fileman_PRE:man=$(FILE_MAN_SUFFIX))
  10. # The calling Makefile should only contain man page targets
  11. # Otherwise the following three global variables may conflict
  12. EXTRA_DIST = $(appman_PRE) $(driverman_PRE) $(fileman_PRE)
  13. CLEANFILES = $(appman_DATA) $(driverman_DATA) $(fileman_DATA)
  14. SUFFIXES = .$(APP_MAN_SUFFIX) .$(DRIVER_MAN_SUFFIX) .$(FILE_MAN_SUFFIX) .man
  15. # Add server specific man pages string substitution from XORG_MANPAGE_SECTIONS
  16. # 's|/,|/, |g' will add a space to help font path formatting
  17. MAN_SUBSTS += -e 's|__logdir__|$(logdir)|g' \
  18. -e 's|__datadir__|$(datadir)|g' \
  19. -e 's|__mandir__|$(mandir)|g' \
  20. -e 's|__sysconfdir__|$(sysconfdir)|g' \
  21. -e 's|__xconfigdir__|$(__XCONFIGDIR__)|g' \
  22. -e 's|__xkbdir__|$(XKB_BASE_DIRECTORY)|g' \
  23. -e 's|__XKB_DFLT_RULES__|$(XKB_DFLT_RULES)|g' \
  24. -e 's|__XKB_DFLT_MODEL__|$(XKB_DFLT_MODEL)|g' \
  25. -e 's|__XKB_DFLT_LAYOUT__|$(XKB_DFLT_LAYOUT)|g' \
  26. -e 's|__XKB_DFLT_VARIANT__|$(XKB_DFLT_VARIANT)|g' \
  27. -e 's|__XKB_DFLT_OPTIONS__|$(XKB_DFLT_OPTIONS)|g' \
  28. -e 's|__bundle_id_prefix__|$(BUNDLE_ID_PREFIX)|g' \
  29. -e 's|__modulepath__|$(DEFAULT_MODULE_PATH)|g' \
  30. -e 's|__suid_wrapper_dir__|$(SUID_WRAPPER_DIR)|g' \
  31. -e 's|__default_font_path__|$(COMPILEDDEFAULTFONTPATH)|g' \
  32. -e '\|$(COMPILEDDEFAULTFONTPATH)| s|/,|/, |g'
  33. .man.$(APP_MAN_SUFFIX):
  34. $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
  35. .man.$(DRIVER_MAN_SUFFIX):
  36. $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
  37. .man.$(FILE_MAN_SUFFIX):
  38. $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@