mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 12:25:07 +00:00
Man page processing/installation and other doc file updates
This commit is contained in:
23
cpprules.in
23
cpprules.in
@@ -4,7 +4,7 @@
|
||||
|
||||
SED = sed
|
||||
|
||||
SUFFIXES = .pre
|
||||
SUFFIXES = .pre .man .man.pre
|
||||
|
||||
# Translate XCOMM into pound sign with sed, rather than passing -DXCOMM=XCOMM
|
||||
# to cpp, because that trick does not work on all ANSI C preprocessors.
|
||||
@@ -20,5 +20,26 @@ CPP_SED_MAGIC = $(SED) -e '/^\# *[0-9][0-9]* *.*$$/d' \
|
||||
-e '/^[ ]*XHASH/s/XHASH/\#/' \
|
||||
-e '/\@\@$$/s/\@\@$$/\\/'
|
||||
|
||||
# Strings to replace in man pages
|
||||
XORGRELSTRING = @PACKAGE_STRING@
|
||||
XORGMANNAME = X Version 11
|
||||
XSERVERNAME = Xorg
|
||||
|
||||
MANDEFS = \
|
||||
-D__vendorversion__="\"$(XORGRELSTRING)\" \"$(XORGMANNAME)\"" \
|
||||
-D__xorgversion__="\"$(XORGRELSTRING)\" \"$(XORGMANNAME)\"" \
|
||||
-D__appmansuffix__=$(APP_MAN_SUFFIX) \
|
||||
-D__filemansuffix__=$(FILE_MAN_SUFFIX) \
|
||||
-D__libmansuffix__=$(LIB_MAN_SUFFIX) \
|
||||
-D__miscmansuffix__=$(MISC_MAN_SUFFIX) \
|
||||
-D__drivermansuffix__=$(DRIVER_MAN_SUFFIX) \
|
||||
-D__adminmansuffix__=$(ADMIN_MAN_SUFFIX) \
|
||||
-D__projectroot__=$(prefix) \
|
||||
-D__xconfigfile__=$(__XCONFIGFILE__) -D__xconfigdir__=$(XCONFIGDIR) \
|
||||
-D__xlogfile__=$(XLOGFILE) -D__xservername__=$(XSERVERNAME)
|
||||
|
||||
.pre:
|
||||
$(RAWCPP) $(RAWCPPFLAGS) $(CPP_FILES_FLAGS) < $< | $(CPP_SED_MAGIC) > $@
|
||||
|
||||
.man.pre.man:
|
||||
$(RAWCPP) $(RAWCPPFLAGS) $(MANDEFS) $(EXTRAMANDEFS) < $< | $(CPP_SED_MAGIC) > $@
|
||||
|
||||
Reference in New Issue
Block a user