xserver

xserver with xephyr scale patch
git clone https://git.neptards.moe/u3shit/xserver.git
Log | Files | Refs | README | LICENSE

manpages.am (2769B)


      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 
      5 drivermandir = $(DRIVER_MAN_DIR)
      6 #driverman_PRE = list of driver man page files set by calling Makefile.am
      7 driverman_DATA = $(driverman_PRE:man=$(DRIVER_MAN_SUFFIX))
      8 
      9 filemandir = $(FILE_MAN_DIR)
     10 #fileman_PRE = list of file man page files set by calling Makefile.am
     11 fileman_DATA = $(fileman_PRE:man=$(FILE_MAN_SUFFIX))
     12 
     13 # The calling Makefile should only contain man page targets
     14 # Otherwise the following three global variables may conflict
     15 EXTRA_DIST = $(appman_PRE) $(driverman_PRE) $(fileman_PRE)
     16 CLEANFILES = $(appman_DATA) $(driverman_DATA) $(fileman_DATA)
     17 SUFFIXES = .$(APP_MAN_SUFFIX) .$(DRIVER_MAN_SUFFIX) .$(FILE_MAN_SUFFIX) .man
     18 
     19 # xorg-macros.m4 has these bracketed by double underscores, but meson
     20 # wants ats.
     21 
     22 MAN_SUBSTS +=   -e 's|@vendorversion@|"$(PACKAGE_STRING)" "$(XORG_MAN_PAGE)"|' \
     23                 -e 's|@xorgversion@|"$(PACKAGE_STRING)" "$(XORG_MAN_PAGE)"|' \
     24                 -e 's|@xservername@|Xorg|g' \
     25                 -e 's|@xconfigfile@|xorg.conf|g' \
     26                 -e 's|@projectroot@|$(prefix)|g' \
     27                 -e 's|@apploaddir@|$(appdefaultdir)|g' \
     28                 -e 's|@appmansuffix@|$(APP_MAN_SUFFIX)|g' \
     29                 -e 's|@drivermansuffix@|$(DRIVER_MAN_SUFFIX)|g' \
     30                 -e 's|@adminmansuffix@|$(ADMIN_MAN_SUFFIX)|g' \
     31                 -e 's|@libmansuffix@|$(LIB_MAN_SUFFIX)|g' \
     32                 -e 's|@miscmansuffix@|$(MISC_MAN_SUFFIX)|g' \
     33                 -e 's|@filemansuffix@|$(FILE_MAN_SUFFIX)|g'
     34 
     35 # Add server specific man pages string substitution from XORG_MANPAGE_SECTIONS
     36 # 's|/,|/, |g' will add a space to help font path formatting
     37 MAN_SUBSTS += 	-e 's|[@]logdir[@]|$(logdir)|g' \
     38 		-e 's|[@]datadir[@]|$(datadir)|g' \
     39 		-e 's|[@]mandir[@]|$(mandir)|g' \
     40 		-e 's|[@]sysconfdir[@]|$(sysconfdir)|g' \
     41 		-e 's|[@]xconfigdir[@]|$(XCONFIGDIR)|g' \
     42 		-e 's|[@]xkbdir[@]|$(XKB_BASE_DIRECTORY)|g' \
     43 		-e 's|[@]XKB_DFLT_RULES[@]|$(XKB_DFLT_RULES)|g' \
     44 		-e 's|[@]XKB_DFLT_MODEL[@]|$(XKB_DFLT_MODEL)|g' \
     45 		-e 's|[@]XKB_DFLT_LAYOUT[@]|$(XKB_DFLT_LAYOUT)|g' \
     46 		-e 's|[@]XKB_DFLT_VARIANT[@]|$(XKB_DFLT_VARIANT)|g' \
     47 		-e 's|[@]XKB_DFLT_OPTIONS[@]|$(XKB_DFLT_OPTIONS)|g' \
     48 		-e 's|[@]bundle_id_prefix[@]|$(BUNDLE_ID_PREFIX)|g' \
     49 		-e 's|[@]modulepath[@]|$(DEFAULT_MODULE_PATH)|g' \
     50 		-e 's|[@]suid_wrapper_dir[@]|$(SUID_WRAPPER_DIR)|g' \
     51 		-e 's|[@]default_font_path[@]|$(COMPILEDDEFAULTFONTPATH)|g' \
     52 		-e '\|$(COMPILEDDEFAULTFONTPATH)| s|/,|/, |g'
     53 
     54 .man.$(APP_MAN_SUFFIX):
     55 	$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
     56 .man.$(DRIVER_MAN_SUFFIX):
     57 	$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
     58 .man.$(FILE_MAN_SUFFIX):
     59 	$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@