diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2005-07-09 20:06:04 +0000 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2005-07-09 20:06:04 +0000 |
commit | 6f2132b18e61ca9755e4b45550f3f5097dd1fbb7 (patch) | |
tree | 4d8df31089b381e898175a2abb25ee493a61ff0d /man | |
parent | 3939ac4410446b46071c9d714f4270c12bf904fe (diff) |
Set __libmansuffix__ & __xorgversion__ correctly when cpp processing man pages
Diffstat (limited to 'man')
-rw-r--r-- | man/Makefile.am | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/man/Makefile.am b/man/Makefile.am index 3369959..9155bfb 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -1,8 +1,8 @@ # Have to fake out automake by calling our man pages "DATA" since "MANS" won't # accept .3x as a valid man page suffix -LIBMAN_SUFFIX=@LIBMAN_SUFFIX@ -libmandir = $(mandir)/man$(LIBMAN_SUFFIX) +LIBMANSUFFIX=@LIBMAN_SUFFIX@ +libmandir = $(mandir)/man$(LIBMANSUFFIX) libman_SOURCES = \ AllPlanes.man \ @@ -187,7 +187,7 @@ libman_SOURCES = \ XmbTextExtents.man \ XmbTextPerCharExtents.man -libman_DATA=$(libman_SOURCES:man=$(LIBMAN_SUFFIX)) +libman_DATA=$(libman_SOURCES:man=$(LIBMANSUFFIX)) EXTRA_DIST = $(libman_SOURCES) @@ -195,7 +195,15 @@ CLEANFILES = $(libman_DATA) include $(top_srcdir)/cpprules.in -SUFFIXES += .$(LIBMAN_SUFFIX) .man +SUFFIXES += .$(LIBMANSUFFIX) .man + +XORGRELSTRING = @PACKAGE_STRING@ + XORGMANNAME = X Version 11 + +MANDEFS = -D__libmansuffix__=$(LIBMANSUFFIX) \ + -D__xorgversion__="\"$(XORGRELSTRING)\" \"$(XORGMANNAME)\"" + +CPP_MAN_FLAGS = $(MANDEFS) $(EXTRAMANDEFS) .man.$(LIBMAN_SUFFIX): $(RAWCPP) $(RAWCPPFLAGS) $(CPP_MAN_FLAGS) < $< | $(CPP_SED_MAGIC) > $@ |