From 388aa4870a5344505297a18e8fea233f40f12693 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 25 Feb 2021 09:05:59 +1000 Subject: Makefile.am: move the man page rules to the top More readable grouping this way Signed-off-by: Peter Hutterer --- Makefile.am | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 2074701..4a39da1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,24 @@ +SED = sed + +XORGRELSTRING = @PACKAGE_STRING@ + XORGMANNAME = X Version 11 + +MAN_SUBSTS = \ + -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ + -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ + -e 's|__datadir__|$(datadir)|g' \ + -e 's|__libdir__|$(libdir)|g' \ + -e 's|__sysconfdir__|$(sysconfdir)|g' \ + -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \ + -e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \ + -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' + +SUFFIXES = .$(MISC_MAN_SUFFIX) .man + +.man.$(MISC_MAN_SUFFIX): man + $(MKDIR_P) man + $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ + applewmdir = $(includedir)/X11/extensions applewm_HEADERS = \ include/X11/extensions/applewmconst.h \ @@ -121,27 +142,6 @@ present_HEADERS = \ presentprotopkgconfigdir = $(datadir)/pkgconfig presentprotopkgconfig_DATA = presentproto.pc -SED = sed - -XORGRELSTRING = @PACKAGE_STRING@ - XORGMANNAME = X Version 11 - -MAN_SUBSTS = \ - -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ - -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ - -e 's|__datadir__|$(datadir)|g' \ - -e 's|__libdir__|$(libdir)|g' \ - -e 's|__sysconfdir__|$(sysconfdir)|g' \ - -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \ - -e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \ - -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' - -SUFFIXES = .$(MISC_MAN_SUFFIX) .man - -.man.$(MISC_MAN_SUFFIX): man - $(MKDIR_P) man - $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ - randrdir = $(includedir)/X11/extensions randr_HEADERS = \ include/X11/extensions/randr.h \ -- cgit v1.2.3